MockMethodCallEventArgs Properties

Typemock Isolator Developer Guide

The MockMethodCallEventArgs type exposes the following members.

Properties

  NameDescription
Public propertyCalledMethodName
Name of method that was called
Public propertyCalledType
Type in which the method was called from
Public propertyException
This is the exception that will be thrown (null unless WillThrowException is true.
Public propertyExpectedArguments
Array of the expected arguments sent to the Args method (see IParameters )
Public propertyHasPassedValidation
This is true if the method has passed all validations
Public propertyIsStaticMethod
This is true if the method is static
Public propertyReturnValue
The mocked return value (null if WillThrowException is true)
Public propertySentArguments
Array of the Argument that where went
Public propertyWillThrowException
This is true if the mocked method will throw an exception, Either because the exception was mocked (see ExpectAndThrow(String, Exception, Type) or because of a validation exception.
Top
See Also

Reference