Created
November 20, 2019 20:23
-
-
Save elihart/dc06bb85b4eb014ed5c80f4d557687d3 to your computer and use it in GitHub Desktop.
MvRxViewModelTestClass
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
class TextViewModelTest : ViewModelTest<TextState, TextViewModel> { | |
override fun buildViewModel() = TextViewModel(TextState()) | |
@Test | |
fun setText() = TextViewModel::setText { | |
withParams("hello") expectState { | |
copy(text = "hello") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment