A behavior setting on how the fake object is created.
Namespace: TypeMock.ArrangeActAssert
Assembly: Typemock.ArrangeActAssert (in Typemock.ArrangeActAssert.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
MustSpecifyReturnValues | 0 | All void calls are ignored. Unless using WhenCalled on methods that return values and properties, they will throw a TypeMockException. | |
CallOriginal | 1 | All methods are called. Using WhenCalled allow to change this behavior. | |
ReturnNulls | 2 | All void calls are ignored. Unless using WhenCalled on methods that return values and properties, they will return null values (or zero for value types). | |
ReturnRecursiveFakes | 3 | Default. All void calls are ignored. When calling the fake's methods returning values or properties, they will return a fake value, which presents this behavior recursively. Any deep call will never return a Null value. | |
MustBeSpecified | 4 | All method behaviors must be define or calling them will throw a TypeMockException. |
See Also