Sergio Crespo Toubes
05/27/2022, 11:17 AMval item = turbineState.awaitItem()
item.showProgress.shouldBe(false)
item.selectedItem.shouldBe(-1)
item.filteredLocations.count().shouldBe(2)
I tried this code but is not working...
turbineState.awaitItem().should {
!it.showProgress &&
it.selectedItem == -1 &&
it.filteredLocations.count() == 2
}
Emil Kantis
05/27/2022, 11:32 AMturbineState.awaitItem().should {
it.showProgress shouldBe false
it.selectedItem shouldBe -1
it.filteredLocations shouldHaveSize 2
}
?Davio
05/27/2022, 11:49 AMassertSoftly(item) { showProgress shouldBe false..etc }
which changes the functionality a bit (does all the asserts and fails at the end, not just until one fails)Sergio Crespo Toubes
05/27/2022, 11:59 AM