Example #1
0
 public Feature(ITestOutputHelper output, string feature, string description)
 {
     if (string.IsNullOrWhiteSpace(feature))
     {
         throw new ArgumentNullException(nameof(feature), "Feature should be named.");
     }
     _output = output;
     StepQueue.Enqueue(new Spec(SpecType.Feature, feature));
     if (!string.IsNullOrWhiteSpace(description))
     {
         StepQueue.Enqueue(new Spec(SpecType.Description, description));
     }
 }
Example #2
0
 public When(ITestOutputHelper output, StepQueue stepQueue, string when, Action step)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.When, when, step));
 }
Example #3
0
 internal Then(ITestOutputHelper output, StepQueue stepQueue, string then, Action step)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.Then, then, step));
 }
Example #4
0
 public ThenAnd(ITestOutputHelper output, StepQueue stepQueue, string and, Action step)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.And, and, step));
 }
Example #5
0
 internal Scenario(ITestOutputHelper output, StepQueue stepQueue, string scenario)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.Scenario, scenario));
 }