Created
October 5, 2021 08:44
-
-
Save fabioCollini/b8f5395f97d1f54f2e009eab5446d83b 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 `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