Example #1
0
 public NBehaveFeatureTestElement(string featureTitle, IProjectFile featureFile, IUnitTestProvider testProvider, ProjectModelElementEnvoy projectModel)
     : base(featureFile, testProvider, featureFile.Location.FullPath + "/" + featureTitle, projectModel, null)
 {
     _featureTitle = featureTitle;
     IdentityGenerator.Reset();
 }
 public NBehaveStepTestElement(string step, IProjectFile featureFile, IUnitTestProvider testProvider, ProjectModelElementEnvoy projectModel, NBehaveUnitTestElementBase parent)
     : base(featureFile, testProvider, parent.Id + "/" + step, projectModel, parent)
 {
     _step     = step;
     _identity = IdentityGenerator.NextValue().ToString().PadLeft(9, '0');
 }
Example #3
0
 public NBehaveExampleTestElement(Example example, IProjectFile featureFile, IUnitTestProvider testProvider, ProjectModelElementEnvoy projectModel, NBehaveUnitTestElementBase parent)
     : base(featureFile, testProvider, parent.Id + "/" + example, projectModel, parent)
 {
     _example  = example;
     _identity = IdentityGenerator.NextValue().ToString().PadLeft(9, '0');
 }
 public NBehaveExampleParentTestElement(IEnumerable <Example> examples, IProjectFile featureFile, IUnitTestProvider testProvider, ProjectModelElementEnvoy projectModel, NBehaveUnitTestElementBase parent)
     : base(featureFile, testProvider, parent.Id + "/Examples", projectModel, parent)
 {
     _examples = new List <Example>(examples);
     _identity = IdentityGenerator.NextValue().ToString().PadLeft(9, '0');
 }