Can set one method of the mock to be Strict
Namespace: TypeMock
Assembly: TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax
Property Value
Type: BooleanRemarks
Examples
[Test] public void Test() { // Start mocking TestedClass Mock mock = MockManager.Mock(typeof(TestedClass)); TestedClass t = new TestedClass(); // No expectations, the following will fail because passInt() is // set to Strict mock.MethodSettings("passInt").IsStrict = true; t.passInt(10); MockManager.Verify(); }
See Also