//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldAdvertiseFailedRule() public virtual void ShouldAdvertiseFailedRule() { PreFlightTasks check = new PreFlightTasks(NullLogProvider.Instance, WithOneFailingRule); check.Run(); assertNotNull(check.FailedTask()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldLogFailedRule() public virtual void ShouldLogFailedRule() { AssertableLogProvider logProvider = new AssertableLogProvider(); PreFlightTasks check = new PreFlightTasks(logProvider, WithOneFailingRule); check.Run(); logProvider.AssertExactly(inLog(typeof(PreFlightTasks)).error("blah blah")); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRunAllHealthChecksToCompletionIfNonFail() public virtual void ShouldRunAllHealthChecksToCompletionIfNonFail() { PreFlightTasks check = new PreFlightTasks(NullLogProvider.Instance, PassingRules); assertTrue(check.Run()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldFailIfOneOrMoreHealthChecksFail() public virtual void ShouldFailIfOneOrMoreHealthChecksFail() { PreFlightTasks check = new PreFlightTasks(NullLogProvider.Instance, WithOneFailingRule); assertFalse(check.Run()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldPassWithNoRules() public virtual void ShouldPassWithNoRules() { PreFlightTasks check = new PreFlightTasks(NullLogProvider.Instance); assertTrue(check.Run()); }