Esempio n. 1
0
        public void TestFlow()
        {
            var enumerator = SuperEnumerator.For(Make("a"), Make(null));

            EPAssertionUtil.AssertEqualsExactOrder(new object[] { "a" }, enumerator);

            enumerator = SuperEnumerator.For(Make("a,b"), Make(null));
            EPAssertionUtil.AssertEqualsExactOrder(new object[] { "a", "b" }, enumerator);

            enumerator = SuperEnumerator.For(Make("a"), Make("b"));
            EPAssertionUtil.AssertEqualsExactOrder(new object[] { "a", "b" }, enumerator);

            enumerator = SuperEnumerator.For(Make(null), Make("a,b"));
            EPAssertionUtil.AssertEqualsExactOrder(new object[] { "a", "b" }, enumerator);
        }
Esempio n. 2
0
        public void TestEmpty()
        {
            var enumerator = SuperEnumerator.For(Make(null), Make(null));

            Assert.IsFalse(enumerator.MoveNext());
        }