toBe

context(assertionScope: AssertionScope)
infix fun Expect<Any?>.toBe(expected: Any?)(source)

Asserts that the exposed value is equal to the expected value using == comparison.

This performs structural equality comparison (using equals under the hood).

Receiver

The Expect instance whose value will be compared.

Context Parameters

assertionScope

The assertion scope that will consume the assertion result.

Parameters

expected

The expected value to compare against.