internal override TestInvoker CreateInnerInvoker(TestPathNode node) { TestInvoker invoker = new ReflectionTestCaseInvoker(this); invoker = new PrePostRunTestInvoker(invoker); invoker = new ResultGroupTestInvoker(node.Path, invoker); return(invoker); }
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); }
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)); } } }
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)); }
public ReflectionTestCase(TestPathNode node) { Node = node; Name = node.Path.Name; }