public void When_check_succeeds_a_success_is_returned() { const string name = "test"; const bool expectedResult = true; HealthChecks.Add(name, () => expectedResult); var results = HealthChecks.RunAll(); results.Should().Contain(name, expectedResult); }