WasCalledWithAnyArguments is not working with nunit 2.5 beta and testdriven.net 2.18.
Here's the production code:
public class MyController
{
public void DoNothing()
{
}
}
Here's the test code:
[Test, Isolated]
public void MyControllerTest()
{
MyController controller = Isolate.Fake.Instance<MyController>(Members.ReturnRecursiveFakes);
Isolate.Verify.WasCalledWithAnyArguments(()=>controller. DoNothing());
}
Here's the exception trace:
TestCase 'MyControllerTest'
not executed: TypeMock.VerifyException :
TypeMock Verification: Method DllSendApppTest.Controllers.MyController.DoNothing() was expected but was not called
at e0.b(ag A_0, b8 A_1)
at e0.d(Delegate A_0)
at e0.b(Action A_0)
C:developmentReleaseScriptInstantDllUpdateSourceDllSendApppTestControllersAnotherTest.cs(132,0): at DllSendApppTest.Controllers.AnotherTest.MyControllerTest()
at TypeMock.MockManager.a(String A_0, String A_1, Object A_2, Object A_3, Boolean A_4, Object[] A_5)
at TypeMock.InternalMockManager.getReturn(Object that, String typeName, String methodName, Object methodParameters, Boolean isInjected)
C:developmentReleaseScriptInstantDllUpdateSourceDllSendApppTestControllersAnotherTest.cs(0,0): at DllSendApppTest.Controllers.AnotherTest.MyControllerTest()
0 passed, 0 failed, 1 skipped, took 1.86 seconds.
This should be a
failed, not
skipped.
________
NEW JERSEY MARIJUANA DISPENSARY