示例#1
0
        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);
                }
            }
        }
示例#2
0
文件: Program.cs 项目: amacal/xenon
        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();
        }