Public bug reported:
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
** Affects: nunitv2
Importance: High
Assignee: Simone Busoli (simone.busoli)
Status: Triaged
** Changed in: nunitv2
Status: New => Triaged
** Changed in: nunitv2
Importance: Undecided => High
** Changed in: nunitv2
Assignee: (unassigned) => Simone Busoli (simone.busoli)
** Changed in: nunitv2
Milestone: None => 2.6.2
--
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
_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to : [email protected]
Unsubscribe : https://launchpad.net/~nunit-core
More help : https://help.launchpad.net/ListHelp