Created
April 19, 2019 08:48
-
-
Save cloudshooterhuman/2db7ef974a9bd58a1e40854607e62aae to your computer and use it in GitHub Desktop.
AAA
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
@Test | |
fun testSuccessfulLogin() { | |
// Agange | |
val vm = LoginViewModel(environment()) | |
val loginSuccess = TestSubscriber<Void>() | |
vm.outputs.loginSuccess().subscribe(loginSuccess) | |
vm.inputs.email("[email protected]") | |
vm.inputs.password("danisawesome") | |
// Act | |
vm.inputs.loginClick() | |
// Assert | |
loginSuccess.assertValueCount(1) | |
koalaTest.assertValues("Login") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment