IEnumerable<T> for Datapoints doesn't work
Bug #898256 reported by
David Hait
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Fix Released
|
High
|
Charlie Poole | ||
NUnit V2 |
Fix Released
|
High
|
Charlie Poole |
Bug Description
When I try to return an IEnumerable<T> for the Datapoints attribute in 2.5.10, I get:
NUnitTheoryTest
System.
'<Values>d__0' to type 'System.
The following code should work:
[Datapoints]
public IEnumerable<double> Values()
{
for (int i = 0; i < 10; i++)
yield break;
}
Changed in nunitv2: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Charlie Poole (charlie.poole) |
Changed in nunit-3.0: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.9.6 |
Changed in nunitv2: | |
milestone: | none → 2.6.0 |
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
Changed in nunit-3.0: | |
status: | Triaged → Fix Committed |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Changed in nunit-3.0: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.