コード例 #1
0
        public void TestIgnore(string message)
        {
            if (assertIgnore == null)
            {
                assertIgnore = UnitTestRuntimeProviderHelper.GetAssertMethodWithFormattedMessage(NUNIT_ASSEMBLY, ASSERT_TYPE, "Ignore");
            }

            assertIgnore("{0}", new object[] { message });
        }
コード例 #2
0
        public void TestInconclusive(string message)
        {
            if (assertInconclusive == null)
            {
                assertInconclusive = UnitTestRuntimeProviderHelper.GetAssertMethodWithFormattedMessage(AssemblyName, ASSERT_TYPE, "Inconclusive");
            }

            assertInconclusive("{0}", new object[] { message });
        }
コード例 #3
0
        public void TestInconclusive(string message)
        {
            if (assertInconclusive == null)
            {
                try
                {
                    assertInconclusive = UnitTestRuntimeProviderHelper.GetAssertMethodWithFormattedMessage(
                        NUNIT_ASSEMBLY, ASSERT_TYPE, "Inconclusive");
                }
                catch (SpecFlowException)
                {
                    // for earlier nunit versions, where the Inconclusive was not supported yet
                    assertInconclusive = UnitTestRuntimeProviderHelper.GetAssertMethodWithFormattedMessage(
                        NUNIT_ASSEMBLY, ASSERT_TYPE, "Ignore");
                }
            }

            assertInconclusive("{0}", new object[] { message });
        }