Re: Abstract Test Classes
"Brad Stiles" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
Jeff <[email protected]> wrote: > In 2.4.6, this test is showing up in the GUI and getting the "yellow" > ignored icon when I run the test suite. And looking at the Tests > Not Run, it says that it didn't run because it's an abstract class > (of course). > Do other people have abstract test classes? What is the recommended > solution here? I do this on occasion. In your abstract class, do you have the [TestFixture] attribute set on the class? If so, remove it. As long as the child classes are decorated properly, they'll still show up, but this will keep the abstract one from displaying. Make sure any tests that you have *in* the abstract class are properly decorated, though. Brad ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/