← Back to team overview

nunit-core team mailing list archive

[Bug 1052298] [NEW] Allow TestCaseSource to be an instance of IEnumerable

 

Public bug reported:

TestCaseSource currently supports named fields, methods and properties. Since the names are strings, this approach is not type-safe and is hard to refactor. NUnitLite has the ability to simply specify a Type argument to TestCaseSource. The type
must implement IEnumerable and return test cases when it is used. We should port this feature to standard NUnit.

** Affects: nunitv2
     Importance: Medium
     Assignee: Charlie Poole (charlie.poole)
         Status: Fix Committed

** Changed in: nunitv2
       Status: New => In Progress

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

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

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

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

Title:
  Allow TestCaseSource to be an instance of IEnumerable

Status in NUnit V2 Test Framework:
  Fix Committed

Bug description:
  TestCaseSource currently supports named fields, methods and properties. Since the names are strings, this approach is not type-safe and is hard to refactor. NUnitLite has the ability to simply specify a Type argument to TestCaseSource. The type
  must implement IEnumerable and return test cases when it is used. We should port this feature to standard NUnit.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1052298/+subscriptions


Follow ups

References