src/GenFx.Wpf.Tests/DefaultStopwatchTest.cs
/// <summary>
/// Tests that the <see cref="DefaultStopwatch.Restart"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void DefaultStopwatch_Restart()
        {
            DefaultStopwatch stopwatch = new DefaultStopwatch();
            stopwatch.Start();
            Thread.Sleep(100);
            stopwatch.Restart();
            Thread.Sleep(1);
            Assert.True(stopwatch.Elapsed >= TimeSpan.FromMilliseconds(1) &&
                stopwatch.Elapsed < TimeSpan.FromMilliseconds(100));
        }
[ Fact ] public void DefaultStopwatch_Restart ( ) { DefaultStopwatch stopwatch = new DefaultStopwatch ( ) ; stopwatch . Start ( ) ; Thread . Sleep ( 100 ) ; stopwatch . Restart ( ) ; Thread . Sleep ( 1 ) ; Assert . True ( stopwatch . Elapsed >= TimeSpan . FromMilliseconds ( 1 ) && stopwatch . Elapsed < TimeSpan . FromMilliseconds ( 100 ) ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .