Что такое ReplayAll () и VerifyAll () в RhinoMocks

[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();
}

Какова цель ReplayAll () и VerifyAll () в этом коде?

8
задан Default 15 April 2013 в 12:32
поделиться