Add tests for new error cases

This commit is contained in:
Ben Chatelain 2018-12-27 14:50:38 -07:00
parent 16734a7f89
commit 8db27258bc

View file

@ -98,4 +98,14 @@ class MASErrorTestCase: XCTestCase {
error = .noSearchResultsFound
XCTAssertEqual(error.description, "No results found")
}
func testNotInstalled() {
error = .notInstalled
XCTAssertEqual(error.description, "Not installed")
}
func testUninstallFailed() {
error = .uninstallFailed
XCTAssertEqual(error.description, "Uninstall failed")
}
}