toBeTheInstance
Expects that the subject of this
expectation is the same instance as expected.
Return
an Expect for the subject of this
expectation.
Since
0.17.0
Samples
val list = listOf(3)
expect(list).toBeTheInstance(list)
fails { // because toBeTheInstance is based on identity, use toEqual for equality
expect(listOf(3)).toBeTheInstance(listOf(3))
}