Ejemplo n.º 1
0
        public async void Tick_ShouldNotCallHealthCheck_WhenItDoesNotNeedToRun(IHealthCheck check)
        {
            check.NeedsToRun.Returns(false);
            HealthMonitor.AddCheck(check).Should().BeTrue();

            HealthMonitor.Tick();

            // wait for the queue to run
            await Task.Delay(5);

            check.DidNotReceive().RunAsync();
        }
Ejemplo n.º 2
0
 public void Tick_ShouldNotThrow_WhenUnconfigured()
 {
     HealthMonitor.Tick();
 }