← Back to team overview

nunit-core team mailing list archive

[Bug 1064014] Re: Simple async tests should not return Task<T>

 

** Branch linked: lp:~simone.busoli/nunitv2/1064014

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

Title:
  Simple async tests should not return Task<T>

Status in NUnit V2 Test Framework:
  Triaged

Bug description:
  NUnit does not allow simple tests (i.e. those marked with Test rather
  than TestCase) to return a value. If they do, they are flagged as
  invalid. By extension, we should not allow the async version of such
  tests to return Task<T>.

  In the existing implementation, this is allowed and the value is
  simply ignored silently.

  The following tests in AsyncRealFixture are runnable but should be non-runnable:
    AsyncTaskResultSuccess
    AsyncTaskResultFailure
    AsyncTaskResultError
    AsyncTaskResultExpectedException

  The following test in AsyncRealFixture is runnable but should  be non-runnable
    TaskWithResult

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


References