Skip to content

Instantly share code, notes, and snippets.

@biac
Created December 6, 2011 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biac/1437415 to your computer and use it in GitHub Desktop.
Save biac/1437415 to your computer and use it in GitHub Desktop.
FeedReader: 4つめのテスト ~ テストケースでは async / await は使えない
[TestMethod]
public async void ReadAsyncTest4_補足_テストケースはasyncに出来ない()
{
FeedData fd = await (new FeedReader()).ReadAsync(RssUrl);
Assert.Fail("テストランナーに制御が戻ってから非同期実行が完了するので、この Fail() はテストランナーで捕捉できない。");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment