public bool Equals(NBehaveExampleTestElement other) { if (other == null) return false; if (ReferenceEquals(this, other)) return true; return base.Equals(other) && Equals(other._example.ToString(), _example.ToString()); }
public bool Equals(NBehaveExampleTestElement other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && Equals(other._example.ToString(), _example.ToString())); }
private void BuildExamples(Scenario scenario) { if (scenario.Examples.Any() == false) return; var ex = new NBehaveExampleParentTestElement(scenario.Examples, _parent.FeatureFile, _unitTestProvider, _projectModel, _parent); Add(ex); foreach (var example in scenario.Examples) { var s = new NBehaveExampleTestElement(example, _parent.FeatureFile, _unitTestProvider, _projectModel, ex); Add(s); } }
private void BuildExamples(Scenario scenario) { if (scenario.Examples.Any() == false) { return; } var ex = new NBehaveExampleParentTestElement(scenario.Examples, _parent.FeatureFile, _unitTestProvider, _projectModel, _parent); Add(ex); foreach (var example in scenario.Examples) { var s = new NBehaveExampleTestElement(example, _parent.FeatureFile, _unitTestProvider, _projectModel, ex); Add(s); } }