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