コード例 #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());
        }
コード例 #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"));
        }
コード例 #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());
        }
コード例 #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());
        }
コード例 #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());
        }