Created
May 17, 2018 15:56
-
-
Save ktanaka117/7131745cf9284ff9c1353decc7464900 to your computer and use it in GitHub Desktop.
XCTContext.runActivityのラッパー #CodePiece
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func context(named: String, block: (XCTActivity) throws -> (XCTWaiter.Result)) rethrows { | |
_ = try XCTContext.runActivity(named: named, block: block) | |
} | |
class FavoriteListDataStoreTests: XCTestCase { | |
func testSaveFavoriteList() { | |
context(named: "") { activity -> XCTWaiter.Result in | |
return .completed | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment