chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
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");
   }
}
asked by Neil (27.7k points)

2 Answers

0 votes
Hi Neil,

Thanks for your report, it looks like a bug.
We'll let you know once it is fixed.
answered by ohad (35.5k points)
0 votes
Thanks Ohad.
answered by Neil (27.7k points)
...