Forum member

dhelper

3 posts

Posts by dhelper

  1. System.NullReferenceException when running with isolator V7

    I'm tried using 7.0.4but I think it would happen with the latest 7.0.5 as well.

  2. System.NullReferenceException when running with isolator V7

    The test fails on a line that looks like this: [Test, Isolated] public void MyTest() { const string sessionId = "session-1"; Isolate.WhenCalled(() => OperationContext.Current.SessionId).WillReturn(sessionId); // <-- fail here The code fails before it even reach my class under test

  3. System.NullReferenceException when running with isolator V7

    Test uses NUnit and Isolator V7. Pass when run using Resharper but fails with nCrunch System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.NullReferenceException : Object reference not set to an instance of an object. at Syste…