← Back to team overview

nunit-core team mailing list archive

[Bug 537914] Re: TheoryAttribute does not work with generics

 

** Changed in: nunit-3.0
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/537914

Title:
  TheoryAttribute does not work with generics

Status in NUnit Test Framework:
  Confirmed

Bug description:
  Setting: NUnit 2.5.3, Console runner, .NET 3.5

TheoryAttribute does not work with generics:

[Datapoint]
public double[,] Array2X2 = new double[,] { { 1, 0 }, { 0, 1 } };

[Theory]
public void TestForArbitraryArray<T>(T[,] array)
{
  // ...
}

NUnit gives a warning saying "No arguments were provided".





References