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(); }
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); }
public void AddTest(EventExpressionCase desc) { _results.Add(desc); }