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