TestCase expected return value cannot be null
Bug #483845 reported by
Charlie Poole
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Fix Released
|
Low
|
Adam Connelly | ||
NUnit V2 |
Fix Released
|
Low
|
Charlie Poole |
Bug Description
TestCaseAttribute determines whether a value was supplied for the expected result by checking for a non-null value in the result field. That means you cannot expect a null return. This should be fixed by using a flag to indicate whether the result was set.
This also applies to TestCaseSourceA
Related branches
lp:~adam-rpconnelly/nunit-3.0/bug-483845
Merged
into
lp:nunit-3.0
- Charlie Poole: Approve
-
Diff: 133 lines (+35/-13)4 files modifiedsrc/framework/Internal/Extensibility/ParameterSet.cs (+21/-11)
src/framework/Internal/Extensions/NUnitTestCaseBuilder.cs (+2/-1)
src/framework/Internal/TestMethod.cs (+6/-1)
src/tests/Attributes/TestCaseAttributeTests.cs (+6/-0)
Changed in nunit-3.0: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in nunitv2: | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in nunitv2: | |
milestone: | none → 2.5.3 |
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Charlie Poole (charlie.poole) |
Changed in nunit-3.0: | |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.9.4 |
tags: | added: easy v2port |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Changed in nunit-3.0: | |
assignee: | Charlie Poole (charlie.poole) → Adam Connelly (adam-rpconnelly) |
Changed in nunit-3.0: | |
status: | Triaged → Won't Fix |
status: | Won't Fix → Fix Committed |
Changed in nunit-3.0: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.