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)); }
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); }
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); }