KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
[Test] public void MockAGenericInterface() { MockRepository mocks = new MockRepository(); IList<int> list = mocks.Create Mock<IList<int>>(); Assert.IsNotNull(list); Expect.Call(list.Count).Return(5); mocks.ReplayAll(); Assert.AreEqual(5, list.Count); mocks.VerifyAll(); } What is the purpose of ReplayAll() and VerifyAll() in this code?
Tags (comma-separated)
Save Edits
Cancel