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
extension XCTestCase { | |
func g<T>(array: [T], at index: Int, file: StaticString = #file, line: UInt = #line) -> T { | |
continueAfterFailure = false | |
guard index < array.count else { | |
XCTFail("index out of range", file: file, line: line) | |
precondition(false) | |
} | |
return array[index] | |
} | |
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 uw<T>(variable: T?, file: StaticString = #file, line: UInt = #line) -> T { | |
continueAfterFailure = false | |
guard let variable = variable else { | |
XCTFail("unexpectedly found nil while unwrapping an Optional value", file: file, line: line) | |
precondition(false) | |
} | |
return variable | |
} |
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 g<T>(array: [T], at index: Int, file: StaticString = #file, line: UInt = #line) -> T { | |
continueAfterFailure = false | |
guard index < array.count else { | |
XCTFail("index out of range", file: file, line: line) | |
precondition(false) | |
} | |
return array[index] | |
} |
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
extension XCTestCase { | |
// method 1 | |
// method 2 | |
} |
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
class ClassTwo { | |
let variable = "this is 2ed class" | |
} |
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
class ClassOne { | |
let variable = "this is 1st class" | |
} |
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
class ClassZero { | |
let variable = "this is 0th class" | |
} |
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
class hoopster_iosTests: XCTestCase { | |
override func setUp() { | |
super.setUp() | |
// Put setup code here. This method is called before the invocation of each test method in the class. | |
} | |
override func tearDown() { | |
// Put teardown code here. This method is called after the invocation of each test method in the class. | |
super.tearDown() |
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
class LogInViewModelTests: XCTestCase { | |
private let disposeBag = DisposeBag() | |
private let timeout = 1.0 | |
var mockCellViewModelFactory: LabelAndTextFieldCellViewModelFactoryProtocol! | |
var mockLogInService: MockLogInService! | |
var logInViewModel: LogInViewModel! | |
override func setUp() { |
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
Roy | |
Li | |
is | |
Pretty | |
Rad |