Jonathan Olsson
11/24/2022, 9:21 AMcollection.find { it is SomeType }.shouldNotBeNull()
I was looking for something in the line of:
collection.shouldContainOneOf<SomeType>()Emil Kantis
11/24/2022, 9:32 AMcollection.forOne { it is SomeType }Emil Kantis
11/24/2022, 9:33 AMJonathan Olsson
11/24/2022, 9:41 AMJonathan Olsson
11/24/2022, 9:43 AMcollection.shouldContainOneOf<SomeType>() {
it.shouldBeTypeOf<SomeType>()
}Jonathan Olsson
11/24/2022, 9:55 AMcollection.forOne {
it.shouldBeTypeOf<SomeType>()
it.someFieldInSomeType shouldBe somethingElse
}Jonathan Olsson
11/24/2022, 9:56 AMit will be type casted.sam
11/24/2022, 12:45 PM