Exemplo n.º 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));
     }
 }
Exemplo n.º 2
0
 public When(ITestOutputHelper output, StepQueue stepQueue, string when, Action step)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.When, when, step));
 }
Exemplo n.º 3
0
 internal Then(ITestOutputHelper output, StepQueue stepQueue, string then, Action step)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.Then, then, step));
 }
Exemplo n.º 4
0
 public ThenAnd(ITestOutputHelper output, StepQueue stepQueue, string and, Action step)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.And, and, step));
 }
Exemplo n.º 5
0
 internal Scenario(ITestOutputHelper output, StepQueue stepQueue, string scenario)
 {
     _output    = output;
     _stepQueue = stepQueue;
     _stepQueue.Enqueue(new Spec(SpecType.Scenario, scenario));
 }