Wednesday, October 14, 2015

NUnit–Method has non-void return value

When running our NUnit tests on the build server, some of them failed with the following error message:

Method has non-void return value

When I looked at the failed tests, they were all using the async/await syntax:

I found the following posts mentioning the error message:

The proposed solution was to updated NUnit to a more recent version, but when I took a look on the build server we were already using NUnit 2.6.

Anyone with an alternative solution?

1 comment:

Anonymous said...

Is the NUNit agent running the tests under .net 4.5?