示例#1
0
        TestPathNode Parameterize(ITestParameter parameter)
        {
            var newPath = Path.Parameterize(parameter);
            var newNode = new TestPathNode(Tree, newPath);

            newNode.parameterized = true;
            return(newNode);
        }
示例#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;
        }
示例#3
0
 internal abstract TestInvoker CreateInnerInvoker(TestPathNode node);
 public TestCollectionInvoker(TestBuilder builder, TestPathNode node, TestFlags flags = TestFlags.ContinueOnError)
     : base(flags)
 {
     Builder = builder;
     Node    = node;
 }