The NUnit GUI was giving me Error message.

Asked By 0 points N/A Posted on -
qa-featured

Hello,

I chose to use the NUnit Framework. I then tried an example found on the web and after the project was built, I loaded NUnit GUI and opened the unit test assembly, but to my surprise, the NUnit GUI was giving me Error message. It was telling me that the Test load failed with detailed error: SystemApplicationException: Unable to find test in the assembly. Help me! Thanks.

Unable to find test in assembly For further information, use the Exception Details menu item.

NUnit

Test load failed!

System.ApplicationException: Unable to find test in assembly

For further information, use the Exception Details menu item.

OK

SHARE
Answered By 0 points N/A #175339

The NUnit GUI was giving me Error message.

qa-featured
Hi there Curtis L Price,
 
Several reasons could cause your problem.
 
The first thing to do is to check if the class Test is the part of the proper assembly. Also, you should make sure that you've loaded the right assembly. If the correct assembly is not loaded, you will get the stated error.
 
Also, there is a known issue with a NUnit which can cause the error. NUnit configuration is referring to the supported Runtime version 2.0 and that shouldn't be the case – it should support the 4.0. In order to make things work, you should open the NUnit configuration file and comment that line so the configuration file looks like this: 
 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
       <!–<supportedRuntime version="v2.0.50727" />–>
    <supportedRuntime version="v4.0.30319" />
  </startup>
</configuration>

 

This small change in the configuration will force the NUnit to use the .NET 4.0 and everything should work.
 
Best regards,
Drake Vivian

Login/Register to Answer

Related Questions