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(); }