public bool Equals(NBehaveExampleParentTestElement other)
 {
     if (other == null)
         return false;
     if (ReferenceEquals(this, other)) return true;
     return base.Equals(other) && Equals(other._examples.AsString(), _examples.AsString());
 }
Beispiel #2
0
 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);
     }
 }
 public bool Equals(NBehaveExampleParentTestElement other)
 {
     if (other == null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) && Equals(other._examples.AsString(), _examples.AsString()));
 }
Beispiel #4
0
        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);
            }
        }