nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #03532
[Bug 1064014] Re: Simple async tests should not return Task<T>
** Changed in: nunit-3.0
Assignee: (unassigned) => Charlie Poole (charlie.poole)
** Changed in: nunit-3.0
Status: Triaged => Fix Committed
--
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 Test Framework:
Fix Committed
Status in NUnitLite Testing Framework:
Fix Released
Status in NUnit V2 Test Framework:
Fix Released
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/nunit-3.0/+bug/1064014/+subscriptions
References