Skip to content

Instantly share code, notes, and snippets.

@manhduy
Created July 30, 2020 10:05
Show Gist options
  • Save manhduy/853fb8b78db9086df7cf117bb593444a to your computer and use it in GitHub Desktop.
Save manhduy/853fb8b78db9086df7cf117bb593444a to your computer and use it in GitHub Desktop.
@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