public void DoesStartWorks() { var stopwatch = new System.Diagnostics.Stopwatch(); var implementation = new Infrastructure.Stopwatch.Stopwatch(stopwatch); implementation.Start(); stopwatch.IsRunning.Should().BeTrue(); }
public void DoesElapsedMillisecondsWorkCorrectly() { var stopwatch = new System.Diagnostics.Stopwatch(); stopwatch.Start(); stopwatch.Stop(); var implementation = new Infrastructure.Stopwatch.Stopwatch(stopwatch); implementation.ElapsedMilliseconds.Should().Be(stopwatch.ElapsedMilliseconds); }