Skip to content

Instantly share code, notes, and snippets.

@AndyStewart
Created January 30, 2017 13:24
Show Gist options
  • Save AndyStewart/81e62208cc782ec484c9b1c644e14694 to your computer and use it in GitHub Desktop.
Save AndyStewart/81e62208cc782ec484c9b1c644e14694 to your computer and use it in GitHub Desktop.
[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