ExpectCollection

interface ExpectCollection<out E> : Expect<Collection<E>?>

Parameters

E

Expected Type

Samples

Functions

Link copied to clipboard
expect abstract fun toBe(expected: Collection<E>?)
expect abstract fun toBe(expected: Collection<E>?, message: String)
Link copied to clipboard
inline fun <E> Expect<Any?>.toBe(): E
Link copied to clipboard
abstract fun toBeEmpty()
Link copied to clipboard
inline fun <E> Expect<E>.toBeEqualTo(expected: E, message: String? = null)
Link copied to clipboard
fun <T : Comparable<T>> Expect<T>.toBeGreaterThan(expected: T)
Link copied to clipboard
Link copied to clipboard
inline fun <E> Expect<Any?>.toBeInstanceOf(message: String? = null): Expect<E>
Link copied to clipboard
fun <T : Comparable<T>> Expect<T>.toBeLessThan(expected: T)
Link copied to clipboard
Link copied to clipboard
expect abstract fun toBeNonNull()
expect abstract fun toBeNonNull(message: String)
Link copied to clipboard
expect abstract fun toBeNull()
expect abstract fun toBeNull(message: String)
Link copied to clipboard
abstract fun toBeOfSize(size: Int)
Link copied to clipboard
inline fun <T> Expect<T>.toBeUnequalTo(expected: T, message: String? = null)
Link copied to clipboard
abstract fun toContain(vararg elements: @UnsafeVariance E?)
Link copied to clipboard
inline fun Expect<String?>.toContain(other: String, ignoreCase: Boolean = true, message: String? = null)
Link copied to clipboard
abstract fun toContainElements()
Link copied to clipboard
abstract fun toHave(length: Int)
Link copied to clipboard
abstract fun toNotContain(vararg elements: @UnsafeVariance E?)

Properties

Link copied to clipboard
expect abstract val value: Collection<E>?