Skip to content
patrik-hagne edited this page Jun 22, 2011 · 1 revision

Strict mocks

var foo = A.Fake<IFoo>(x => x.Strict());

After you have configured your fake in this fashion you can configure any "allowed" calls as usual, for example:

A.CallTo(() => foo.Bar()).Returns("bar");
Clone this wiki locally