Hi Neil,
There is a issue in the test - you haven't specified were 'x' is being used in the method call - and as a consequence Isolator does not know that the parameter passed to the method is actually x.
The test should be:
[TestClass, Isolated]
public class Tests
{
public class A
{
public void Method(int x)
{
}
}
[TestMethod]
public void Test()
{
A a = new A();
Isolate.WhenCalled((int x) => a.Method(x))
.AndArgumentsMatch((int x) => x == 1).IgnoreCall();
}
}
As you can see by replacing
default(int) with x makes the test pass.
I agree we need to improve the error message.