I try to debug tests after calling the installation method, and the tests depend on the installation method being called.
I am using Nunit 2.6.0.12051, a testing .NET 4.0 class library. The nunit Visual Studio project has a class marked [SetUpFixture] and a method marked [SetUp].
If I run tests from NUnit gui, I am pretty sure that the assignment attribute class is called (because it is not stopped in the installation class with an error at runtime), but I cannot debug it. If I try to change the settings to see Verbose Tracing, NUnit gui will issue an unhandled checkout.
If I run tests from Visual Studio using Test View / Debug Selection, the breakpoint in the installation method does not stop execution, and the trace statements inside the method do not print in the debug window. Therefore, I am sure that the configuration method is not called.
While I could just change the installation class to be the base of all test classes, I only need one method run.
Any help would be wonderful.
unit-testing installation visual-studio-2010 nunit
Dfberry
source share