Ejemplo n.º 1
0
        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."));
        }
Ejemplo n.º 2
0
        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."));
        }
Ejemplo n.º 3
0
        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."));
        }
Ejemplo n.º 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."));
        }