Created
January 9, 2016 21:48
-
-
Save adamralph/23c573f809fa48bb4c0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public async Task SillyTest() | |
{ | |
var foo = await Foo(); | |
var task = SomeMockMethodOrWhateverWhichReturnsATaskWhichNeverCompletes(); | |
return task; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This won't even compile. You'll get a CS1997 error which is very undocumented.
CS1997 Since 'SillyTest()' is an async method that returns 'Task', a return keyword must not be followed by an object expression. Did you intent to return 'Task<T>'?