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