detecting excluded categories when running the tests
"Laimonas Simutis" <[email protected]> Tue, 22 Jul 2008 15:51:24 -0500
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
Is there a way to detect which test categories were excluded from unit
test code itself?
For instance, I have this code:
[SetUpFixture]
public class TestDataSetup()
{
[SetUp]
public void FixtureSetUp()
{
if ( !excludedList.Contains("Database"))
{
SetupTestDB();
}
}
}
If not, would my best option be create another project just for the
database tests and in there the SetUpFixture SetUp would contain
SetupTestDB() code?
Thanks,
L
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/