Beispiel #1
0
        public void Test()
        {
            var testResultMessage = FakeDataHelper.GetPassed_Failed_Ignored_Message();

            var parser = new TestDetailParser();

            var list = parser.CreateTestDetails(testResultMessage);

            Assert.Pass();
        }
Beispiel #2
0
        public void Should_Get_Test_Result_For_Passed_Failed_Ignored_Message()
        {
            var testResultMessage = FakeDataHelper.GetPassed_Failed_Ignored_Message();

            var messageParser = new MessageParser(new TestSummaryParser(), new TestDetailParser());

            var testResult = messageParser.GetTestResult(testResultMessage);

            var expectedResult = new TestSummary
            {
                TotalNumberOfTests   = 3,
                ProjectName          = "TestProjectUsedByAutoTestRunner.dll",
                NumberOfFailedTests  = 1,
                NumberOfIgnoredTests = 1,
                NumberOfPassedTests  = 1,
                TimeTakenInSecond    = 1.7281m
            };

            testResult.Should().BeEquivalentTo(expectedResult);
        }