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());
 }
Пример #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()));
 }
Пример #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);
     }
 }
Пример #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);
            }
        }