public RunFrameBuilder(ITestClassCommand testClass, IPerceiverList perceivers, AbstractRunFrameFactory runFrameFactory) { if (testClass == null) { throw new ArgumentNullException("testClass"); } if (perceivers == null) { throw new ArgumentNullException("perceivers"); } if (runFrameFactory == null) { throw new ArgumentNullException("runFrameFactory"); } _perceivers = perceivers; _testClass = testClass; _runFrameFactory = runFrameFactory; }
private static void ConstructsFrames(RunElementTreeNode thisNode, Stack<RunElementTreeNode> stack, Collection<RunFrame> frames, AbstractRunFrameFactory runFrameFactory) { if (thisNode == null) { throw new System.ArgumentNullException("thisNode"); } if (stack == null) { throw new ArgumentNullException("stack"); } if (frames == null) { throw new ArgumentNullException("frames"); } if (runFrameFactory == null) { throw new ArgumentNullException("runFrameFactory"); } stack.Push(thisNode); if (thisNode.FirstChild == null) { frames.Add(runFrameFactory.CreateFrame(stack.Select(node => node.Element))); } else { ConstructsFrames(thisNode.FirstChild, stack, frames, runFrameFactory); } stack.Pop(); if (thisNode.Next != null) { ConstructsFrames(thisNode.Next, stack, frames, runFrameFactory); } }
private static void ConstructsFrames(RunElementTreeNode thisNode, Stack <RunElementTreeNode> stack, Collection <RunFrame> frames, AbstractRunFrameFactory runFrameFactory) { if (thisNode == null) { throw new System.ArgumentNullException("thisNode"); } if (stack == null) { throw new ArgumentNullException("stack"); } if (frames == null) { throw new ArgumentNullException("frames"); } if (runFrameFactory == null) { throw new ArgumentNullException("runFrameFactory"); } stack.Push(thisNode); if (thisNode.FirstChild == null) { frames.Add(runFrameFactory.CreateFrame(stack.Select(node => node.Element))); } else { ConstructsFrames(thisNode.FirstChild, stack, frames, runFrameFactory); } stack.Pop(); if (thisNode.Next != null) { ConstructsFrames(thisNode.Next, stack, frames, runFrameFactory); } }