Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active May 11, 2016 20:11
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 JayBazuzi/d1375358582079e8d2f9bf09e33017e5 to your computer and use it in GitHub Desktop.
Save JayBazuzi/d1375358582079e8d2f9bf09e33017e5 to your computer and use it in GitHub Desktop.
This test passes now. Use Extract Method on the indicated block.Then the test fails.
[TestMethod]
public void TestMethod1()
{
var x = 0;
Task.Run(() =>
{
Thread.Sleep(TimeSpan.FromSeconds(1));
x++;
});
{
// Extract Method start
Thread.Sleep(TimeSpan.FromSeconds(2));
Assert.AreEqual(1, x);
// Extract Method end
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment