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)
453Assert.Equal(timeProvider.Start, first); 454Assert.Equal(timeProvider.Start + TimeSpan.FromSeconds(1), second); 455Assert.Equal(timeProvider.Start + TimeSpan.FromSeconds(2), third); 465Assert.Equal(timeProvider.Start, timeProvider.GetUtcNow()); 479Assert.Equal(timeProvider.Start, timeProvider.GetUtcNow());
TimerTests.cs (10)
257timeProvider.SetUtcNow(timeProvider.Start + TimeSpan.FromMilliseconds(20)); 261timeProvider.SetUtcNow(timeProvider.Start + TimeSpan.FromMilliseconds(1000)); 265Assert.Equal(timeProvider.Start, value1); 266Assert.Equal(timeProvider.Start + TimeSpan.FromMilliseconds(20), value2); 267Assert.Equal(timeProvider.Start + TimeSpan.FromMilliseconds(1000), value3); 284Assert.Equal(new[] { timeProvider.Start }, value1); 287timeProvider.Start, 288timeProvider.Start + period + period + period, 289timeProvider.Start + period + period + period, 290timeProvider.Start + period + period + period,