Beispiel #1
0
        public void TestEmptyCreateStartedShouldUseSystemStopwatch()
        {
            var sw = Stopwatches.CreateAndStart();

            sw.Should().BeOfType <TickerBackedStopwatch>()
            .Which.Ticker
            .Should().BeOfType <SystemStopwatchBackedTicker>();
        }
Beispiel #2
0
 public void TestCreateStarted()
 {
     Stopwatches.CreateAndStart(ticker)
     .IsRunning.Should().BeTrue();
 }