public void TestCreateUnstarted() { var sw = Stopwatches.Create(); sw.IsRunning.Should().BeFalse(); sw.Elapsed.ShouldBeEquivalentTo(TimeSpan.Zero); }
public void TestEmptyCreateShouldUseSystemStopwatch() { var sw = Stopwatches.Create(); sw.Should().BeOfType <TickerBackedStopwatch>() .Which.Ticker .Should().BeOfType <SystemStopwatchBackedTicker>(); }
public StopwatchTests() { ticker = new FakeTicker(); stopwatch = Stopwatches.Create(ticker); }