Sets the return value when the method is called.
IMethodOptions Return( object objToReturn )
Throws the specified exception when the method is called.
IMethodOptions Throw( Exception exception )
Ignores the arguments for this method.
IMethodOptions IgnoreArguments()
Allows to get the Interfaces.IRepeat instance that would allow to set the expected number of times that this method will occur.
IRepeat Repeat { get }
Sets the contraints on this method parameters.
IMethodOptions Constraints( params AbstractConstraint[] constraints )
Sets a callback delegate to be called when this method is called.
IMethodOptions Callback( Delegate callback )
Set an action to run when the expectation is matched.
IMethodOptions Do( Delegate action )
Call the original method on the class, bypassing the mocking layers.
void CallOriginalMethod()
Use the property as a normal property, so you can use it to save/load values without having to specify expectations for it.
IMethodOptions PropertyBehavior()
IEventRaiser GetEventRaiser()
IMethodOptions OutRef( params object[] parameters )
IMethodOptions Message( string documentationMessage )