public void Execute(TestInvoke context) { foreach (TestGroup group in groups) { if (group.Support.HasFlag(TestSupport.Static)) { group.InvokeXenonStatic(context); } if (group.Support.HasFlag(TestSupport.Dynamic)) { group.InvokeXenonDynamic(context); } if (group.Support.HasFlag(TestSupport.Reader)) { group.InvokeXmlReader(context); } if (group.Support.HasFlag(TestSupport.Linq)) { group.InvokeXmlLinq(context); } } }
public static void Main(string[] args) { TestRunner runner = new TestRunner { new JustSeekGroup(), new TextLengthGroup() }; TestReporter reporter = new TestReporter(); TestInvoke invoke = new TestInvoke(args[0], reporter); runner.Execute(invoke); reporter.Summarize(); }