internal override TestInvoker CreateInnerInvoker(TestPathNode node)
        {
            TestInvoker invoker = new ReflectionTestCaseInvoker(this);

            invoker = new PrePostRunTestInvoker(invoker);

            invoker = new ResultGroupTestInvoker(node.Path, invoker);

            return(invoker);
        }
예제 #2
0
        internal ReflectionTestSuite(ReflectionTestFramework framework)
        {
            Framework  = framework;
            Assemblies = framework.Assemblies;
            Builder    = new ReflectionTestSuiteBuilder(this);

            var rootPath = new TestPath(Builder.Host, null, Builder.Parameter);

            RootPath     = new TestPathNode(Builder.TreeRoot, rootPath);
            RootTestCase = new ReflectionTestCase(RootPath);
        }
예제 #3
0
 void AddParameters(TestContext ctx, TestPathNode node)
 {
     foreach (var child in node.GetParameters(ctx))
     {
         if (child.Path.IsHidden || !child.Path.IsBrowseable)
         {
             AddParameters(ctx, child);
         }
         else
         {
             parameters.Add(new ReflectionTestCase(child));
         }
     }
 }
예제 #4
0
 void AddChildren(TestPathNode node)
 {
     foreach (var child in node.GetChildren())
     {
         if (child.Path.IsHidden || !child.Path.IsBrowseable)
         {
             AddChildren(child);
         }
         else
         {
             children.Add(new ReflectionTestCase(child));
         }
     }
 }
 internal override TestInvoker CreateInnerInvoker(TestPathNode node)
 {
     return(new TestCollectionInvoker(this, node));
 }
예제 #6
0
 public ReflectionTestCase(TestPathNode node)
 {
     Node = node;
     Name = node.Path.Name;
 }