Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save renestein/906d1b34051bfb904068 to your computer and use it in GitHub Desktop.
Save renestein/906d1b34051bfb904068 to your computer and use it in GitHub Desktop.
[TestMethod]
public async Task WithTaskFactory_When_One_Task_Is_Queued_Then_Task_is_Executed()
{
bool wasTaskExecuted = false;
await TestTaskFactory.StartNew(() => wasTaskExecuted = true);
Assert.IsTrue(wasTaskExecuted);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment