IncorrectCallCountException class

Thrown when a test expects expectedCalls call(s) to have been made but the actual number of calls is actualCalls, which differs from expectedCalls.

Implemented types

Constructors

IncorrectCallCountException(int expectedCalls, int actualCalls)
Creates a new IncorrectCallCountException describing that expectedCalls call(s) were expected but actualCalls call(s) have actually been made.
const

Properties

actualCalls int
The actual number of calls made to the mock.
final
expectedCalls int
The number of call expected to have been made to the mock.
final
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
Creates a string representation of the IncorrectCallCountException.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited