CollectionAssertionSession

class CollectionAssertionSession<E, C : Iterable<E>> (source)
Deprecated: This is an experimental part of the API. It may be changed or removed in newer releases.

Platform and version requirements: JVM

Constructors

<init>

CollectionAssertionSession(collection: C)

Properties

collection

val collection: C

Extension Functions

containsAll

fun <T> CollectionAssertionSession<T, *>.containsAll(
    vararg elements: T
): Unit

elementAtShouldBe

fun <T> CollectionAssertionSession<T, *>.elementAtShouldBe(
    position: Int,
    expected: T,
    message: String? = null
): Unit

elementAtShouldComply

fun <T, C : Iterable<T>> CollectionAssertionSession<T, C>.elementAtShouldComply(
    position: Int,
    message: String? = null,
    predicate: (T) -> Boolean
): Unit

lastElementShouldBe

fun <T> CollectionAssertionSession<T, *>.lastElementShouldBe(
    expected: T,
    message: String? = null
): Unit

shouldBe

fun <T, C : Iterable<T>> CollectionAssertionSession<T, C>.shouldBe(
    expectedElements: Iterable<T>,
    message: String? = null
): Unit

shouldBeSet

fun <T, C : Set<T>> CollectionAssertionSession<T, C>.shouldBeSet(
    other: Set<T>,
    message: String? = null
): Unit
fun <T, C : Set<T>> CollectionAssertionSession<T, C>.shouldBeSet(
    vararg other: T
): Unit

sizeShouldBe

fun <C : Collection<*>> CollectionAssertionSession<*, C>.sizeShouldBe(
    expectedSize: Int,
    message: String? = null
): Unit