Exemplo n.º 1
0
//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());
        }
Exemplo n.º 2
0
//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"));
        }
Exemplo n.º 3
0
//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());
        }
Exemplo n.º 4
0
//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());
        }
Exemplo n.º 5
0
//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());
        }