_As of commit_ [0d465a66](https://genericunitofworkandrepositories.codeplex.com/SourceControl/changeset/0d465a6614f274d562a6bfc25059c25a10bed7b0).
The `FindProductKeyAsync` test causes an error report (below) under the test discovery output and doesn't actually register or run a test under the Test Explorer in VS2013 (using MsTest).
Current signature:
[TestMethod]
public async void FindProductKeyAsync()
If I then change the return type to `Task` from `void`, the test runner in Visual Studio 2013 (update 2) doesn't complete. A quick bingooglahoo doesn't turn up anything helpful though. Does anyone else see this behaviour? I have a fix, but it involves adding `.Wait().Result` instead of using async/await, which seems a shame - I normally do just this as I wasn't even aware async tests _should_ work.
Original test discovery output:
> UTA007: Method FindProductKeyAsync defined in class Northwind.Test.Repository.ProductRepositoryTest does not have correct signature. Test method marked with the [TestMethod] attribute must be non-static, public, return-type as void and should not take any parameter. Example: public void Test.Class1.Test(). Additionally, return-type must be Task if you are running async unit tests. Example: public async Task Test.Class1.Test2()
The `FindProductKeyAsync` test causes an error report (below) under the test discovery output and doesn't actually register or run a test under the Test Explorer in VS2013 (using MsTest).
Current signature:
[TestMethod]
public async void FindProductKeyAsync()
If I then change the return type to `Task` from `void`, the test runner in Visual Studio 2013 (update 2) doesn't complete. A quick bingooglahoo doesn't turn up anything helpful though. Does anyone else see this behaviour? I have a fix, but it involves adding `.Wait().Result` instead of using async/await, which seems a shame - I normally do just this as I wasn't even aware async tests _should_ work.
Original test discovery output:
> UTA007: Method FindProductKeyAsync defined in class Northwind.Test.Repository.ProductRepositoryTest does not have correct signature. Test method marked with the [TestMethod] attribute must be non-static, public, return-type as void and should not take any parameter. Example: public void Test.Class1.Test(). Additionally, return-type must be Task if you are running async unit tests. Example: public async Task Test.Class1.Test2()