Пример #1
0
            public void Run(RegressionEnvironment env)
            {
                var events = EventCollectionFactory.GetSetTwoExternalClock(0, 1000);
                var results = new CaseList();

                var desc = new EventExpressionCase("every a=SupportBean_A() and not a1=SupportBean_A(Id='A4')");
                desc.Add("B1", "a", events.GetEvent("B1"));
                desc.Add("B2", "a", events.GetEvent("B2"));
                desc.Add("B3", "a", events.GetEvent("B3"));
                results.AddTest(desc);

                var util = new PatternTestHarness(events, results, GetType());
                util.RunTest(env);
            }
Пример #2
0
        private void RunAssertionUniformEvents(EPServiceProvider epService)
        {
            EventCollection events  = EventCollectionFactory.GetSetTwoExternalClock(0, 1000);
            var             results = new CaseList();

            var desc = new EventExpressionCase("every a=" + EVENT_A_CLASS + "() and not a1=" + EVENT_A_CLASS + "(id=\"A4\")");

            desc.Add("B1", "a", events.GetEvent("B1"));
            desc.Add("B2", "a", events.GetEvent("B2"));
            desc.Add("B3", "a", events.GetEvent("B3"));
            results.AddTest(desc);

            var util = new PatternTestHarness(events, results, this.GetType());

            util.RunTest(epService);
        }
Пример #3
0
        public void TestUniformEvents()
        {
            var events  = EventCollectionFactory.GetSetTwoExternalClock(0, 1000);
            var results = new CaseList();
            EventExpressionCase desc = null;

            desc = new EventExpressionCase("every a=" + EVENT_A_CLASS + "() and not a1=" + EVENT_A_CLASS + "(id=\"A4\")");
            desc.Add("B1", "a", events.GetEvent("B1"));
            desc.Add("B2", "a", events.GetEvent("B2"));
            desc.Add("B3", "a", events.GetEvent("B3"));
            results.AddTest(desc);

            var util = new PatternTestHarness(events, results, GetType(), GetType().FullName);

            util.RunTest();
        }