示例#1
0
        public static void RunTest(EventCollection eventCollection, EventExpressionCase caseExpr, Type testClass, String testMethod)
        {
            var caseList = new CaseList();

            caseList.AddTest(caseExpr);

            var patternTestHarness = new PatternTestHarness(eventCollection, caseList, testClass, testMethod);

            patternTestHarness.RunTest();
        }
示例#2
0
        public static void RunTest(EventCollection eventCollection, EventExpressionCase caseExpr, Type testClass)
        {
            var caseList = new CaseList();

            caseList.AddTest(caseExpr);

            var config          = SupportConfigFactory.GetConfiguration();
            var serviceProvider = EPServiceProviderManager.GetDefaultProvider(config);

            serviceProvider.Initialize();

            var patternTestHarness = new PatternTestHarness(eventCollection, caseList, testClass);

            patternTestHarness.RunTest(serviceProvider);
        }
示例#3
0
 public void AddTest(EventExpressionCase desc)
 {
     _results.Add(desc);
 }