Created
January 30, 2017 13:24
-
-
Save AndyStewart/81e62208cc782ec484c9b1c644e14694 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
[TestFixture] | |
public class Test1 | |
{ | |
[Test] | |
public async Task TestSavesThings() | |
{ | |
var result = await DoSomeAsync(); | |
Assert.True(result); | |
} | |
private static Task<bool> DoSomeAsync() | |
{ | |
return Task.Factory.StartNew( | |
() => | |
{ | |
Thread.Sleep(1000); | |
return true; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment