Slide 60
Slide 60 text
object MainViewModelTest : Spek({
describe("ItemConverter.convert()") {
val testCase:Map = mapOf(
Item("id1", "title1") to MainItem("id1", "title1"),
Item("id2", "") to MainItem("id2", null),
Item("id3", " ") to MainItem("id3", null)
)
testCase.forEach { inItem, outItem ->
it("$inItem is converted to $outItem") {
assertThat(MainViewModel.ItemConverter.convert(inItem)).isEqualTo(outItem)
}
}
}
Static ϝιουΛςετ