Skip to content

D2005 NUnit Integration Bug and Workaround

I really like the NUnit integration in D2005. But when I first started using it in a C# project I saw the following errors when I ran my test suite:

 "System.UnauthorisedAccessException : Access to the path
"MyProjectTest.PDB" is denied."

…followed by:

 "project nunit-gui.exe encountered an unhandled exception class
System.NullReferenceException with message 'Object reference not set to
an instance of an object.'.

I found a workaround on the newsgroups which has fixed the problem for me: Add /run to the end of the line in Run->Parameters. This causes the test suite to run as soon as the GUI comes up. For some reason this fixes the problem. in every case where I’ve encountered it. Thank you to Anthony Steele for posting the workaround.

I just submitted QC 14349 about this issue.

{ 1 } Comments

  1. Anthony Steele | September 27, 2006 at 5:20 pm | Permalink

    No problem

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 1846 access attempts in the last 7 days.

Close