Created
July 7, 2020 15:58
-
-
Save stevencurtis/589129a595238db29efb3c75ebcf10db to your computer and use it in GitHub Desktop.
testgettasks
This file contains 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 testGetTasks() { | |
let CDM = CoreDataManagerMock() | |
let viewController = ViewControllerFactory().create(CDM) | |
guard let vc = viewController else { | |
return XCTFail("Could not instantiate ViewController") | |
} | |
vc.loadViewIfNeeded() | |
vc.tableView?.reloadData() | |
let actualCell = viewController?.tableView!.cellForRow(at: IndexPath(row: 0, section: 0) ) | |
XCTAssertEqual("Enter your task from Mock", actualCell?.textLabel?.text) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment