I’m trying to get NUNIT working with ReSharper, I’m using NUNIT version 2.5.10.11092.
When I run a test I get a windows dialog popup stating the assertion has failed, this is for a basic test.
[TestFixture]
public class MessageService
{
[Test]
public void BasicTest()
{
int number = 8;
Debug.Assert(number== 9);
}
}
Now the test did fail as intended but instead of having the test runner display the nice green red signals to suggest pass or fail I get this ugly stack trace popup, of which I can either ignore or abort.
I’d rather just use the built in ReShapper runner to display the outcome of the tests.
Any ideas whats wrong?
Thanks
Debug.Assertis part of the .NET Framework, not NUnit. Resharper doesn’t know how to handle that. You should use NUnit assertions instead for “nice” output:There are different syntax assertions in NUnit. Which you use is up to you.