of
Creates an Expect assertion for the given value.
This is the simplest way to start an assertion chain. The value is captured eagerly.
Return
An Expect instance wrapping the value.
Parameters
value
The value to assert on.
Type Parameters
Value
The type of the value being asserted on.
Creates an Expect assertion for the given value and executes the assertion block on it.
The value is captured eagerly, and the block is called exactly once with the value as the receiver.
Parameters
value
The value to assert on.
block
The assertion block to execute with the value as the receiver.
Type Parameters
Value
The type of the value being asserted on.