doc / ch.tutteli.atrium.logic.impl / DefaultAnyAssertions

DefaultAnyAssertions

class DefaultAnyAssertions : AnyAssertions

Constructors

<init>

DefaultAnyAssertions()

Functions

because

fun <T> because(container: AssertionContainer<T>, reason: String, assertionCreator: Expect<T>.() -> Unit): Assertion

isA

fun <T, TSub : Any> isA(container: AssertionContainer<T>, subType: KClass<TSub>): SubjectChangerBuilder.ExecutionStep<T, TSub>

isNotIn

fun <T> isNotIn(container: AssertionContainer<T>, expected: Iterable<T>): Assertion

isNotSameAs

fun <T> isNotSameAs(container: AssertionContainer<T>, expected: T): Assertion

isSameAs

fun <T> isSameAs(container: AssertionContainer<T>, expected: T): Assertion

notToBe

fun <T> notToBe(container: AssertionContainer<T>, expected: T): Assertion

notToBeNullButOfType

fun <T : Any> notToBeNullButOfType(container: AssertionContainer<T?>, subType: KClass<T>): SubjectChangerBuilder.ExecutionStep<T?, T>

toBe

fun <T> toBe(container: AssertionContainer<T>, expected: T): Assertion

toBeNull

fun <T> toBeNull(container: AssertionContainer<T>): Assertion

toBeNullIfNullGivenElse

fun <T : Any> toBeNullIfNullGivenElse(container: AssertionContainer<T?>, type: KClass<T>, assertionCreatorOrNull: (Expect<T>.() -> Unit)?): Assertion
fun <T : Any> toBeNullIfNullGivenElse(container: AssertionContainer<T?>, assertionCreatorOrNull: (Expect<T>.() -> Unit)?): Assertion