public override void Execute(IStep containerStep, ITestContext context) { context.PerformAction(containerStep, (x, y) => _target.BeforeLine()); _properties.Each(x => x.ProcessStep(containerStep, context, _target)); context.PerformAction(containerStep, (x, y) => _target.AfterLine()); }
public void Execute(IStep containerStep, ITestContext context) { context.PerformAction(containerStep, _before); containerStep.LeafFor(_leafName).AllSteps().Each(step => { context.RunStep(InnerGrammar, step); }); context.PerformAction(containerStep, _after); }
public override void Execute(IStep step, ITestContext context) { context.PerformAction(step, () => { object rawValue = _check(); cell().RecordActual(rawValue, step, context); }); }
public void Execute(IStep step, ITestContext context) { var results = context.ResultsFor(step); _grammars.ForEach(g => { context.PerformAction(step, g.Execute); results.MoveFrame(); }); }
private IEnumerable findTheObjects(IStep containerStep, ITestContext context) { IEnumerable actuals = new object[0]; context.PerformAction(containerStep, () => { _befores.Each(x => x(containerStep, context)); actuals = context.Current <IEnumerable>(); }); return(actuals); }
public static void PerformAction(this ITestContext context, IStep step, Action action) { context.PerformAction(step, (c, s) => action()); }
public void Execute(IStep containerStep, ITestContext context) { context.PerformAction(containerStep, _before); context.ExecuteWithFixture <T>(containerStep.LeafFor(LeafName()), containerStep); }
private IEnumerable findTheObjects(IStep containerStep, ITestContext context) { IEnumerable actuals = new object[0]; context.PerformAction(containerStep, () => { _befores.Each(x => x(containerStep, context)); actuals = context.Current<IEnumerable>(); }); return actuals; }