Пример #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);
Пример #4
0
 public TestCollectionInvoker(TestBuilder builder, TestPathNode node, TestFlags flags = TestFlags.ContinueOnError)
     : base(flags)
 {
     Builder = builder;
     Node    = node;
 }