Hi all!
I have this code:
public class Class2
{
public Class2()
{
}
public void Do()
{
Console.WriteLine("Do");
}
}
[Test] public void theTest()
{
Class2 c = new Class2();
MockManager.Init();
Mock m = MockManager.Mock(typeof(Class2));
m.ExpectCall("Do", 2);
c.Do();
c.Do();
MockManager.Verify();
}
but test failed:
ConsoleApplication1.MockTestClass.theTest : TypeMock.VerifyException :
TypeMock Verification: Method ConsoleApplication1.Class2.Do() has 2 more expected calls
where am I wrong?