예제 #1
0
        public void WhenNextPage_ShouldShowNextPage()
        {
            pagedView.NextPage();

            Assert.AreEqual(2, pagedView.CurrentNumItemsShowing);
            int i = 2;

            foreach (var item in pagedView.CollectionView)
            {
                Assert.AreEqual(pagedView.SourceCollection[i], item, $"Item with index {i} not equal. Expected {pagedView.SourceCollection[i]} => Actual:{item}");
                i++;
            }
        }