add UIAlertAction tests to Control+RxTests+UIKit
This commit is contained in:
parent
0188dccd4f
commit
c4e83f3f34
|
|
@ -159,6 +159,22 @@ extension ControlTests {
|
|||
}
|
||||
}
|
||||
|
||||
// UIAlertAction
|
||||
extension ControlTests {
|
||||
func testAlertAction_Enable {
|
||||
let subject = UIAlertAction()
|
||||
Observable.just(false).subscribe(subject.rx_enabled).dispose()
|
||||
|
||||
XCTAssertTrue(subject.enabled == true)
|
||||
}
|
||||
|
||||
func testAlertAction_Disable {
|
||||
let subject = UIAlertAction()
|
||||
Observable.just(false).subscribe(subject.rx_enabled).dispose()
|
||||
|
||||
XCTAssertTrue(subject.enabled == true)
|
||||
}
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue