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 SomeClass
Hexa
11/04/2018, 12:10 PMobj should beInstanceOf(SomeClass::class))
sufficient enough in this case?kr3v
11/04/2018, 12:21 PMobj is SomeClass
, not sure that external libs should be used in such caseHexa
11/04/2018, 1:00 PM