public void ShouldReturnAllTraverserObjsWhenToListIsCalled() { var expectedObjs = new List <object> { 1, 2, 3 }; var traversal = new TestTraversal(expectedObjs); var traversedObjs = traversal.ToList(); Assert.Equal(expectedObjs, traversedObjs); }
public void ShouldBeUnfoldTraverserBulksWhenToListIsCalled() { var objs = new List <object> { 1, 2, 3 }; var bulks = new List <long> { 3, 2, 1 }; var traversal = new TestTraversal(objs, bulks); var traversedObjs = traversal.ToList(); var expectedObjs = UnfoldBulks(objs, bulks); Assert.Equal(expectedObjs, traversedObjs); }