← Back to team overview

nunit-core team mailing list archive

[Bug 882517] Re: NUnit 2.5.10 doesn't recognize TestFixture if there are only TestCaseSource inside

 

** Changed in: nunit-3.0
       Status: In Progress => Fix Committed

-- 
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/882517

Title:
  NUnit 2.5.10 doesn't recognize TestFixture if there are only
  TestCaseSource inside

Status in NUnit Test Framework:
  Fix Committed
Status in NUnit V2 Test Framework:
  Fix Released

Bug description:
  Consider this example:

  public class T1
  {
      [TestCaseSource("GetTestData")]
      public void Test1(int i)
      {}

      public IEnumerable<TestCaseData> GetTestData()
      {
          yield return new TestCaseData(1);
          yield return new TestCaseData(2);
      }
  }

  NUnit 2.5.10 doesn't recognize it as a TestFixture, although in
  documentation it's said that TestCaseSource attribute is enough to
  treat class as fixture.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/882517/+subscriptions


References