The MockMethodCallEventArgs type exposes the following members.

Properties

  NameDescription
CalledMethodName
Name of method that was called
CalledType
Type in which the method was called from
Exception
This is the exception that will be thrown (null unless WillThrowException is true.
ExpectedArguments
Array of the expected arguments sent to the Args method (see IParameters )
HasPassedValidation
This is true if the method has passed all validations
IsStaticMethod
This is true if the method is static
ReturnValue
The mocked return value (null if WillThrowException is true)
SentArguments
Array of the Argument that where went
WillThrowException
This is true if the mocked method will throw an exception, Either because the exception was mocked (see ExpectAndThrow(String, Exception, array<Type>[]()[]) or because of a validation exception.

See Also