CollectionAssertionSession

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

Constructors

JVM
1.0

<init>

CollectionAssertionSession(collection: C)

Properties

JVM
1.0

collection

val collection: C

Extension Functions

JVM
1.0

containsAll

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

elementAtShouldBe

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

elementAtShouldComply

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

lastElementShouldBe

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

shouldBe

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

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
JVM
1.0

sizeShouldBe

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