Hexa
11/04/2018, 11:08 AMundefine when I'm expecting it should be either true or false? obj shouldBe instanceOf(SomeClass::class)kr3v
11/04/2018, 12:08 PMshouldBe works like assertions, so it will throw an AssertionError.
shouldBe is close to assert obj instanceOf SomeClassHexa
11/04/2018, 12:10 PMHexa
11/04/2018, 12:11 PMobj should beInstanceOf(SomeClass::class)) sufficient enough in this case?Hexa
11/04/2018, 12:11 PMkr3v
11/04/2018, 12:21 PMobj is SomeClass, not sure that external libs should be used in such caseHexa
11/04/2018, 1:00 PMHexa
11/04/2018, 1:01 PM