TestMethod: async Task TestSth() does not work with .NET 4.0
问题 I'm trying to run asynchronous test methods with .NET 4.0 BCL Async and MsTest. It seems that this setup is not able to deal with [TestMethod] async Task TestSth() due to a missing entry in the test case explorer. After changing the signature to async void , I can run the the test case but with the wrong outcome (no errors will be reported at all). I have seen an attemt at Running Async Task unit tests with TFS 2010 but I think there should be a prettier way to tackle the problem. Any