In Isolator 5.4.5, Isolate.Verify.NonPublic.WasNotCalled(fake, methodName) does not throw an exception when methodName is not a method on fake.
[ img ]
[TestClass, Isolated]
public class Tests
{
public class A
{
public void AMethod()
{
}
}
[TestMethod]
public void Test()
{
A a = Isolate.Fake.Instance<A>(Members.CallOriginal);
a.AMethod();
Isolate.Verify.NonPublic.WasNotCalled(a, "NonExistentMethod");
}
}