Last active
August 29, 2015 14:12
-
-
Save JayBazuzi/39be261001c002390d79 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
int X = 0; | |
Task.Run(() => | |
{ | |
Thread.Sleep(TimeSpan.FromSeconds(1)); | |
X++; | |
}); | |
{// Extract Method on this block | |
Thread.Sleep(TimeSpan.FromSeconds(2)); | |
Assert.AreEqual(1, X); | |
} |
Updated to be simpler.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This test passes until you Extract Method as indicated.