Ejemplo n.º 1
0
 public void Add(Concern concern)
 {
     Concern.Add(concern);
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 int GetConsernSpecificationFailures(Concern concern)
 {
     return concern.Context.Sum(context => GetContextSpecificationFailures(context));
 }
Ejemplo n.º 4
0
 public void Add(Concern concern)
 {
     Concern.Add(concern);
 }