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.
NUnit
Test load failed!
System.ApplicationException: Unable to find test in assembly
For further information, use the Exception Details menu item.
OK
The NUnit GUI was giving me Error message.
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