Implement deferred core utility parity APIs/tests and refresh tracking artifacts
This commit is contained in:
@@ -77,4 +77,16 @@ public sealed class AccessTimeServiceTests : IDisposable
|
||||
// Mirror: TestUnbalancedUnregister
|
||||
Should.Throw<InvalidOperationException>(() => AccessTimeService.Unregister());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Init_ShouldBeIdempotentAndNonThrowing()
|
||||
{
|
||||
Should.NotThrow(() => AccessTimeService.Init());
|
||||
var first = AccessTimeService.AccessTime();
|
||||
first.ShouldBeGreaterThan(0);
|
||||
|
||||
Should.NotThrow(() => AccessTimeService.Init());
|
||||
var second = AccessTimeService.AccessTime();
|
||||
second.ShouldBeGreaterThan(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user