Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Test]
public void StrictMocking()
{
var mockedInterface = Mock.Create<IMockMe>(Behavior.Strict);
Mock.Arrange(() => mockedInterface.Foo(1, 2)).Returns("called!");
var x = mockedInterface.Bar;
Assert.AreEqual(0, x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment