예제 #1
0
        public void TestRemove()
        {
            IList <IEnumerable <EventBean> > enumerableList = new List <IEnumerable <EventBean> >();

            enumerableList.Add(EventFactoryHelper.MakeList(_events, new[] { "a", "b", "c" }));
            var enumerator = new IterablesListIterator(enumerableList);

            try {
                enumerator.Reset();
                Assert.IsTrue(false);
            }
            catch (NotSupportedException ex) {
                // Expected
            }
        }
예제 #2
0
        private void CheckResults(IEnumerable <IEnumerable <EventBean> > enumerableList, EventBean[] expectedValues)
        {
            var iterator = new IterablesListIterator(enumerableList);

            EPAssertionUtil.AssertEqualsExactOrder(expectedValues, iterator);
        }