← 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

 

Odd. In spite of the documentation, which was changed with 2.5, it
appears that there has never been any code to recognize
TestCaseSourceAttribute as defining a fixture. We currently recognize
the presence of Test, TestCase and Theory only.

** Changed in: nunitv2
       Status: New => Triaged

** Changed in: nunitv2
   Importance: Undecided => High

** Changed in: nunitv2
     Assignee: (unassigned) => Charlie Poole (charlie.poole)

** Changed in: nunitv2
    Milestone: None => 2.6.0

-- 
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:
  Triaged

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


References