nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00217
[Bug 487878] Re: Tests in generic class without proper TestFixture attribute should be reported as invalid
** Changed in: nunitv2
Status: New => In Progress
** Changed in: nunitv2
Importance: Undecided => Medium
** Changed in: nunitv2
Assignee: (unassigned) => Charlie Poole (charlie.poole)
** Changed in: nunitv2
Milestone: None => 2.5.3
--
Tests in generic class without proper TestFixture attribute should be reported as invalid
https://bugs.launchpad.net/bugs/487878
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
Status in NUnit Test Framework: New
Status in NUnit V2 Test Framework: In Progress
Bug description:
There are two cases that NUnit should report invalid tests but it doesn't:
1) without TestFixtureAttribute
// forgot [TestFixture(typeof(string))]
public class GenericTestFixture<T>
{
[Test] public void TestOnGenericFixture() {}
}
2) with inherited TestFixtureAttribute but no type paramter.
[TestFixture]
public class ThirdPartyFixture
{
}
// forgot [TestFixture(typeof(string))]
public class GenericTestFixture<T> : ThirdPartyFixture
{
[Test] public void TestOnGenericFixture() {}
}
See http://groups.google.com/group/nunit-discuss/msg/de708a9c9b0be103
References