Matcher |
A Matcher is the main abstraction in the assertions library. interface Matcher<T> |
MatcherResult |
An instance of MatcherResult contains the result of an evaluation of a Matcher. interface MatcherResult |
be |
fun <T> be(expected: T): Matcher<T> |
equalityMatcher |
fun <T> equalityMatcher(expected: T): Matcher<T> |
neverNullMatcher |
fun <T : Any> neverNullMatcher(test: (T) -> MatcherResult): Matcher<T?> |
should |
infix fun <T> T.should(matcher: Matcher<T>): Unitinfix fun <T> T.should(matcher: (T) -> Unit): Unit |
shouldBe |
infix fun <T, U : T> T.shouldBe(expected: U?): Unit |
shouldHave |
infix fun <T> T.shouldHave(matcher: Matcher<T>): Unit |
shouldNot |
infix fun <T> T.shouldNot(matcher: Matcher<T>): Unit |
shouldNotBe |
infix fun <T> T.shouldNotBe(any: Any?): Unit |
shouldNotHave |
infix fun <T> T.shouldNotHave(matcher: Matcher<T>): Unit |