Created
July 30, 2020 10:05
-
-
Save manhduy/853fb8b78db9086df7cf117bb593444a to your computer and use it in GitHub Desktop.
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
@Test | |
fun test_DisplaySum_WhenSumLiveDataChange() { | |
//Given | |
val scenario = launchActivity<CalculatorActivity>() | |
//When | |
sum.postValue(10) | |
//Then | |
onView(withId(R.id.tvSum)).check(matches(withText("10"))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment