Example #1
0
        public void LastItemWithNoneNextValue()
        {
            var first    = _items.ToPrevNextIterator().Last();
            var standard = new PrevNextValue <int>(3, 4, Optional <int> .None);

            Assert.AreEqual(standard, first);
        }
Example #2
0
        public void SourceWithManyValues_ReturnsFirstItemWithNextValue()
        {
            var first    = _items.ToPrevNextIterator().First();
            var standard = new PrevNextValue <int>(Optional <int> .None, 0, 1);

            Assert.AreEqual(standard, first);
        }