MethodCallRangeError is thrown if the expected method call range has not
been met.
public function MethodCallRangeError(message:String, thrower, args:Array)
Constructs a new MethodCallRangeError instance.
All arguments are allowed to be null or undefined. But if
one is, the string representation returned by the toString method will
not be complete.
The args array should be the internal arguments array of the method
that throws the throwable. The internal arguments array exists in every method
and contains its parameters, the callee method and the caller method. You can
refernce it in every method using the name "arguments".
message | the message that describes the problem in detail |
thrower | the object that declares the method that throws this fatal exception |
args | the arguments of the throwing method |
public function addMethodCall(methodCall:MethodCall, expectedMethodCallRange:MethodCallRange, actualMethodCallRange:MethodCallRange):VoidAdds a new method call together with its expected and actual call range.
methodCall | the new method call |
expectedMethodCallRange | the expected method call range |
actualMethodCallRange | the actual method call range |
public function setType(type:Function):VoidSets the type of the mock that did not met all expectations.
type | the type of the mock |