infix fun <N, V : N> KCallable<N>.shouldBe(expected: V?): Unit
Extension to add the name of the property to error messages.
Use with double colon syntax, eg it::isIntegerLiteral shouldBe true
.
For properties synthesized from Java getters starting with "get", you
have to use the name of the getter instead of that of the generated
property (with the get prefix).
If this conflicts with io.kotest.matchers.shouldBe, use the equivalent shouldEqual