Exemplo n.º 1
0
        public void SetNewBranchTest2()
        {
            List <Step> sequence = new List <Step>()
            {
                new NavigateStep(),
                new GroupStep()
                {
                    Steps = new List <Step>()
                    {
                        new GetValueStep(),
                        new GetValueStep()
                    }
                }
            };
            ExecutionStack executionStack = new ExecutionStack();

            executionStack.SetSequence(sequence);

            List <Step>   newBranch = ((GroupStep)sequence[1]).Steps;
            FixedIterator iterator  = new FixedIterator(new FixedIteration());

            executionStack.SetNewBranch(newBranch, iterator);

            PrivateObject m_PendingBranch = new PrivateObject(executionStack, "m_PendingBranch");

            Assert.IsTrue(m_PendingBranch
                          .GetProperty("Steps", null)
                          .Equals(newBranch));

            Assert.IsTrue(m_PendingBranch
                          .GetProperty("IterationContext", null)
                          .Equals(iterator));
        }
Exemplo n.º 2
0
        private void zCreateFixedIterator(FixedIteration iteration)
        {
            FixedIterator iterator = new FixedIterator(iteration);

            zCompleteGroupStep(iterator);
        }