コード例 #1
0
ファイル: StopwatchTests.cs プロジェクト: NextMethod/Tamarind
        public void TestEmptyCreateStartedShouldUseSystemStopwatch()
        {
            var sw = Stopwatches.CreateAndStart();

            sw.Should().BeOfType <TickerBackedStopwatch>()
            .Which.Ticker
            .Should().BeOfType <SystemStopwatchBackedTicker>();
        }
コード例 #2
0
ファイル: StopwatchTests.cs プロジェクト: NextMethod/Tamarind
 public void TestCreateStarted()
 {
     Stopwatches.CreateAndStart(ticker)
     .IsRunning.Should().BeTrue();
 }