MockMethodCallEventArgs Class

Typemock Isolator Developer Guide
Event arguments that are received for the MockMethodCalled.
Inheritance Hierarchy

SystemObject
  SystemEventArgs
    TypeMockMockMethodCallEventArgs

Namespace:  TypeMock
Assembly:  TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax

public class MockMethodCallEventArgs : EventArgs

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
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

To set an event per method see IMethodSettings and Mock.MethodSettings(String) To set a global event for a mocked type see Mock.MockMethodCalled
See Also

Reference