Using Open Generic Types In TestFixture Attribute Causes Exception When Loading Test DLL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit V2 |
Fix Released
|
Medium
|
Charlie Poole |
Bug Description
The following C# test fixture: (built for .NET 3.5 under VS2010 SP1)
[TestFixture(
public sealed class NUnitBug<T>
{
[Test]
public void Test()
{
}
}
Causes the following exception when loading the tests in the NUnit GUI runner:
System.
Server stack trace:
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at System.
at System.
at System.
Exception rethrown at [0]:
at System.
at System.
at NUnit.Core.
at NUnit.Util.
at NUnit.Util.
Tested in NUnit 2.5.10 and 2.6.0 GUI runners and under ReSharper 6.1.
Related branches
Changed in nunitv2: | |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.6.1rc2 |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Of course, this can't work, but NUnit should give an error message rather than failing.