Void testcase with expected result should be non-runnable
Bug #1064100 reported by
Charlie Poole
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit V2 |
Fix Released
|
Medium
|
Simone Busoli |
Bug Description
We currently allow this...
[TestCase(Result = 1)]
public void SomeTest()
{
}
which will fail, but should really report it as non-runnable.
Related branches
lp:~simone.busoli/nunitv2/1064100
- Charlie Poole: Approve
-
Diff: 1056 lines (+534/-463)7 files modifiedsrc/NUnitCore/core/Builders/NUnitTestCaseBuilder.cs (+9/-22)
src/NUnitCore/tests/NUnitTestCaseBuilderTests.cs (+62/-0)
src/NUnitCore/tests/nunit.core.tests.build (+1/-0)
src/NUnitCore/tests/nunit.core.tests.csproj (+256/-255)
src/tests/test-assembly/TestCaseBuilderFixture.cs (+18/-0)
src/tests/test-assembly/test-assembly.build (+1/-0)
src/tests/test-assembly/test-assembly.csproj (+187/-186)
Changed in nunitv2: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 2.6.2 |
Changed in nunitv2: | |
assignee: | nobody → Simone Busoli (simone.busoli) |
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.