public void TestSingleTestCase_test2()
        {
            var settings = new Settings();
            var result   = new Catch2Interface.TestResult(Resources.TestStrings_TestResult.SingleTestCase, "OtherName", settings);

            Assert.AreEqual(TestOutcomes.Passed, result.Outcome);
            Assert.IsFalse(result.ErrorMessage.Contains("Invalid test runner output."));
        }
        public void TestMultipleTestCases_test3()
        {
            var settings = new Settings();
            var result   = new Catch2Interface.TestResult(Resources.TestStrings_TestResult.MultipleTestCases, "DUMMY", settings);

            Assert.AreEqual(TestOutcomes.Failed, result.Outcome);
            Assert.IsTrue(result.ErrorMessage.Contains("Invalid test runner output."));
        }
        public void TestPostXmlText()
        {
            var settings = new Settings();
            var result   = new Catch2Interface.TestResult(Resources.TestStrings_TestResult.PostXmlText, "Dummy", settings);

            Assert.AreEqual(TestOutcomes.Failed, result.Outcome);
            Assert.IsFalse(result.ErrorMessage.Contains("Invalid test runner output."));
        }
Beispiel #4
0
        public void TestIncomplete()
        {
            var settings = new Settings();
            var result   = new Catch2Interface.TestResult(Resources.TestStrings_TestResult.Incomplete, settings);

            Assert.IsFalse(result.Success);
            Assert.IsTrue(result.ErrorMessage.Contains("Invalid test runner output."));
        }