Last active
May 11, 2016 20:11
-
-
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.
This file contains 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
[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