VerifyAll()
is for verifying that all the expectations have been met. Suppose you have:
myMock.Setup(m => m.DoSomething()).Returns(1);
mySut.Do();
myMock.VerifyAll(); // Fail if DoSomething was not called
VerifyAll()
is for verifying that all the expectations have been met. Suppose you have:
myMock.Setup(m => m.DoSomething()).Returns(1);
mySut.Do();
myMock.VerifyAll(); // Fail if DoSomething was not called