Skip to content

Instantly share code, notes, and snippets.

@fabioCollini
Created October 5, 2021 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabioCollini/b8f5395f97d1f54f2e009eab5446d83b to your computer and use it in GitHub Desktop.
Save fabioCollini/b8f5395f97d1f54f2e009eab5446d83b to your computer and use it in GitHub Desktop.
@Test
fun `sets the result when an input changes`() {
Snapshot.withMutableSnapshot {
viewModel.v1 = "10"
viewModel.v2 = "20"
}
assertThat(viewModel.result).isEqualTo("30")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment