Subject<T> class
final
A target for checking expectations against a value in a test.
A subject my have a real value, in which case the expectations can be validated or rejected; or it may be a placeholder, in which case expectations describe what would be checked but cannot be rejected.
Expectation methods are defined in extensions on Subject
, specialized on
the generic T
.
Expectation extension methods can use the ContextExtension to interact
with the Context for this subject.
Create a subject that throws an exception for missed expectations with the check function.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited