Ejemplo n.º 1
0
        TestPathNode Parameterize(ITestParameter parameter)
        {
            var newPath = Path.Parameterize(parameter);
            var newNode = new TestPathNode(Tree, newPath);

            newNode.parameterized = true;
            return(newNode);
        }
Ejemplo n.º 2
0
        public void Resolve()
        {
            if (resolved)
            {
                return;
            }

            if (Tree.Inner != null)
            {
                var innerPath = new TestPath(Tree.Inner.Host, Path);
                innerNode = new TestPathNode(Tree.Inner, innerPath);
                return;
            }

            children = new List <TestPathNode> ();
            foreach (var child in Tree.Builder.Children)
            {
                var childPath = new TestPath(child.Host, Path, child.Parameter);
                children.Add(new TestPathNode(child.TreeRoot, childPath));
            }

            resolved = true;
        }
Ejemplo n.º 3
0
 internal abstract TestInvoker CreateInnerInvoker(TestPathNode node);
Ejemplo n.º 4
0
 public TestCollectionInvoker(TestBuilder builder, TestPathNode node, TestFlags flags = TestFlags.ContinueOnError)
     : base(flags)
 {
     Builder = builder;
     Node    = node;
 }