This is not really supported but it can be emulated.
public class A
{
[Test]
public virtual void Test()
{
...
}
}
public class B : A
{
[Ignore]
public override void Test()
{
}
}
Of course instead of using [Ignore] we could introduce some kind of
do-nothing [NotATest] attribute.
Jeff.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Mark Kharitonov
Sent: Saturday, August 22, 2009 10:31 AM
To: MbUnit.User
Subject: MbUnit Can derived type suppress tests inherited from a base type?
Hi.
Imagine two types - a test fixture type and a derived one. So, the derived
type inherits the tests from the base type.
Can the derived type instruct the unit test framework to suppress a few
tests inherited from the base type? So that a test A is enabled in the base
type, but disabled in the derived one?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mbunituser?hl=en
-~----------~----~----~----~------~----~------~--~---