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());
 }
Example #2
0
 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()));
 }
Example #3
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);
     }
 }
Example #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);
            }
        }