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)); }
public void SetSequenceTest() { List <Step> sequence = new List <Step>() { new NavigateStep() }; ExecutionStack executionStack = new ExecutionStack(); executionStack.SetSequence(sequence); Assert.IsNotNull(executionStack.CurrentBranch); }