public void ItShouldResumeThread()
        {
            // Given
            var breakpoint = new Breakpoint();

            breakpoint.Pause();
            int state = 0;

            // When
            Task.Run(() =>
            {
                state++;
                breakpoint.WaitIfPaused();
                state++;
            });
            Thread.Sleep(100);
            breakpoint.Resume();
            Thread.Sleep(100);

            // Then
            Assert.AreEqual(2, state);
        }