← Back to team overview

nunit-core team mailing list archive

[Bug 483845] [NEW] TestCase expected return value cannot be null

 

Public bug reported:

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 TestCaseSourceAttribute.

** Affects: nunit-3.0
     Importance: Low
         Status: Triaged

** Affects: nunitv2
     Importance: Low
         Status: Triaged

** Changed in: nunit-3.0
   Importance: Undecided => Low

** Changed in: nunit-3.0
       Status: New => Triaged

** Also affects: nunitv2
   Importance: Undecided
       Status: New

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

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

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

-- 
TestCase expected return value cannot be null
https://bugs.launchpad.net/bugs/483845
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.

Status in NUnit Test Framework: Triaged
Status in NUnit V2 Test Framework: Triaged

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 TestCaseSourceAttribute.



Follow ups

References