Welcome to Typemock Answers. Here you can ask and receive answers from other community members. And if you liked or disliked an answer or thread: react with an up- or downvote Enjoy!

Unable to run nUnit tests in Typemock Test Navigator

0 votes


I have simple unit test as follows:

public void Delete_ShouldThrowNotFoundException()
Isolate.WhenCalled(() => Status.Load(0)).WillReturn(new Status());
var target = new StatusController();
Assert.Throws<NotFoundException>(() => target.Delete(1), "The Status is deleted.");
When I run the test via Typemock Test Navigator window, test fails with:
System.NullReferenceException : Object reference not set to an instance of an object.
   at NUnit.Framework.Internal.TestExecutionContext.IsolatedContext..ctor()
   at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)
   at NUnit.Framework.Assert.Throws(Type expectedExceptionType, TestDelegate code, String message, Object[] args)
   at NUnit.Framework.Assert.Throws[TActual](TestDelegate code, String message, Object[] args)
   at ...StatusControllerTest.Delete_ShouldThrowNotFoundException() in ...\StatusControllerTest.cs:line 62
But when I run it via MS Test Explorer, it passes. 
How can I integrate Test Navigator with nUnit, so they will rok well together?
My configuration is:
VS 2017 Enterprise
asked Aug 8 by Ctvt (150 points)
edited Aug 8 by Ctvt

1 Answer

0 votes
Best answer

Hi Milan,

NUnit 3 is not yet supported in Isolator. You can try and use a previous version of NUnit (2.6.4).

This is a list of supported test runners (excluding the NUnit 3.x)


answered Aug 8 by Raphy (1,090 points)
selected Aug 8 by Ctvt

thanks for answer. Do you plan to support nUnit 3.x any time soon?

Best Regards,


It is on our roadmap. We're working on adding additional test runners to our integrated 3rd party runners.