Пример #1
0
        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());
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
 public override void Execute(IStep step, ITestContext context)
 {
     context.PerformAction(step, () =>
     {
         object rawValue = _check();
         cell().RecordActual(rawValue, step, context);
     });
 }
Пример #5
0
        public void Execute(IStep step, ITestContext context)
        {
            var results = context.ResultsFor(step);

            _grammars.ForEach(g =>
            {
                context.PerformAction(step, g.Execute);
                results.MoveFrame();
            });
        }
Пример #6
0
        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);
        }
Пример #7
0
 public static void PerformAction(this ITestContext context, IStep step, Action action)
 {
     context.PerformAction(step, (c, s) => action());
 }
Пример #8
0
 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;
        }