Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UDF + Unit Tests - Init View Events
@ParameterizedTest
@MethodSource("FeedLoad")
fun `Feed Load`(test: FeedLoadTest) = testDispatcher.runBlockingTest {
mockComponents(test)
// Create view event with Sealed data class.
FeedLoad(test.feedType, ...).also { event ->
viewModel.feedLoad(event)
assertContentList(test, event)
}
verifyTests(test)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.