Null reference exception on generic test fixtures
Bug #1040779 reported by
Diogo Lucas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Test Adapter |
Fix Released
|
Medium
|
Charlie Poole |
Bug Description
Generic test fixtures using the syntax below cause the "test discoverer" code to throw an exception.
[TestFixture(
public class MyTest<T>
{
[Test]
public void TestIt() { }
}
Changing the attribute declaration to explicitly use TypeArgs serves as a workaround:
[TestFixture(
Changed in nunit-vs-adapter: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I'm unable to duplicate this with in the VS2012 RTM, using my current code base. It's possible that other changes have fixed it. I'm marking it 'fixed' but please re-open it if the problem remains under the 0.93 release of the adapter, which will be out shortly.