Ejemplo n.º 1
0
        public void FindNumberOfErrorsShouldReturnOneError()
        {
            var     testSuite = new TestSuite();
            TestRun testRun   = new ArkadeTestMock("test with error", TestType.ContentAnalysis).GetTestRun();

            testRun.Add(new TestResult(ResultType.Error, new Location(""), "feil"));
            testSuite.AddTestRun(testRun);

            testSuite.FindNumberOfErrors().Should().Be(1);
        }
Ejemplo n.º 2
0
        private static TestSuite CreateTestSuite(params TestResult[] testResults)
        {
            var     testSuite = new TestSuite();
            TestRun testRun   = new ArkadeTestMock("test with error", TestType.ContentAnalysis).GetTestRun();

            if (testResults != null)
            {
                foreach (var testResult in testResults)
                {
                    testRun.Add(testResult);
                }
            }
            testSuite.AddTestRun(testRun);
            return(testSuite);
        }