コード例 #1
0
 private void AddScenarioElement(IProject project, UnitTestElementConsumer consumer,
                                 StorEvilStoryElement storyElement, IScenario scenario)
 {
     if (scenario is Scenario)
         consumer(new StorEvilScenarioElement(this, storyElement, project, scenario.Name, (Scenario) scenario));
     else
         consumer(new StorEvilScenarioOutlineElement(this, storyElement, project, scenario.Name,
                                                     (ScenarioOutline) scenario));
 }
コード例 #2
0
        private void AddStoryElement(ConfigSettings config, Story story, IProject project,
                                     UnitTestElementConsumer consumer, StorEvilProjectElement parent)
        {
            var storyElement = new StorEvilStoryElement(this, parent, project, story.Summary, config, story.Id);
            consumer(storyElement);

            foreach (var scenario in story.Scenarios)
                AddScenarioElement(project, consumer, storyElement, scenario);
        }
コード例 #3
0
 public bool Equals(StorEvilStoryElement other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return base.Equals(other) && Equals(other._namespace, _namespace) && Equals(other.Id, Id);
 }