NanoMock<T> class
Mocks a function that returns a value of type T
.
- Available Extensions
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
-
call(
List arguments) → T -
Call the instance with
arguments
, which will try to match them with the existing mocks. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when(
T result, List arguments) → NanoMockCallCount -
Adds a mock to the NanoMock instance, which makes it so if the instance
is called with
arguments
, the instance will returnresult
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited