← Back to team overview

nunit-core team mailing list archive

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

 

Public bug reported:

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.

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/882517

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

Status in NUnit V2 Test Framework:
  New

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/nunitv2/+bug/882517/+subscriptions


Follow ups

References