2 writes to Start
Microsoft.Extensions.TimeProvider.Testing (2)
FakeTimeProvider.cs (2)
35Start = _now; 50Start = _now;
15 references to Start
Microsoft.Extensions.TimeProvider.Testing.Tests (15)
FakeTimeProviderTests.cs (5)
368Assert.Equal(timeProvider.Start, first); 369Assert.Equal(timeProvider.Start + TimeSpan.FromSeconds(1), second); 370Assert.Equal(timeProvider.Start + TimeSpan.FromSeconds(2), third); 380Assert.Equal(timeProvider.Start, timeProvider.GetUtcNow()); 394Assert.Equal(timeProvider.Start, timeProvider.GetUtcNow());
TimerTests.cs (10)
284timeProvider.SetUtcNow(timeProvider.Start + TimeSpan.FromMilliseconds(20)); 288timeProvider.SetUtcNow(timeProvider.Start + TimeSpan.FromMilliseconds(1000)); 292Assert.Equal(timeProvider.Start, value1); 293Assert.Equal(timeProvider.Start + TimeSpan.FromMilliseconds(20), value2); 294Assert.Equal(timeProvider.Start + TimeSpan.FromMilliseconds(1000), value3); 311Assert.Equal(new[] { timeProvider.Start }, value1); 314timeProvider.Start, 315timeProvider.Start + period + period + period, 316timeProvider.Start + period + period + period, 317timeProvider.Start + period + period + period,