Beispiel #1
0
 public void Add(Concern concern)
 {
     Concern.Add(concern);
 }
        void BuildTestSuiteTestFixtureNodes(string testRunTime, Results concernResults, Concern concern)
        {
            foreach (var context in concern.Context)
            {
                var contextSuite = new TestSuite {TestSuiteType = "TestFixture", Name = concern.Name, Executed = true};

                if (GetContextSpecificationFailures(context) == 0)
                {
                    contextSuite.Result = "Success";
                    contextSuite.Success = true;
                }
                else
                {
                    contextSuite.Result = "Failure";
                    contextSuite.Success = false;
                }

                contextSuite.Time = testRunTime;

                var contextResults = new Results();
                contextSuite.Results = contextResults;
                concernResults.TestSuite = contextSuite;

                BuildTestCaseNodes(testRunTime, contextResults, context);
            }
        }
 int GetConsernSpecificationFailures(Concern concern)
 {
     return concern.Context.Sum(context => GetContextSpecificationFailures(context));
 }
Beispiel #4
0
 public void Add(Concern concern)
 {
     Concern.Add(concern);
 }