nunit / nunitv2

NUnit 2.x repository. NUnit V2 IS NO LONGER MAINTAINED OR UPDATED. Bugs should be reported in the main NUnit 3.0 repository.
https://github.com/nunit/nunit
Other
25 stars 26 forks source link

Do not run Nunit 3.0 tests #32

Closed rprouse closed 9 years ago

rprouse commented 9 years ago

I have removed the search for nunitlite and now throw a new NUnit.Core.UnsupportedFrameworkException if attempting to run a test assembly using NUnit 3.0 or newer. In the console and in the nunit.gui, this gets caught by the general exception block and displays the error. I made it a special exception so that the adapter can handle it differently if Terje chooses.

Fixes #30

CharliePoole commented 9 years ago

It's a bit odd, because while it's an error for the user to run against a 3.0 test, it's normal for the adapter to do the same thing. However, Terje can ignore this particular exception. What we really need is a way to ask a framework "Is this assembly one of yours?" and just get an answer. We can have that in 3.0 anyway.