public void TestTakeWhileIndexed() { IEnumerable <int> actual = Partitioning.TakeWhileIndexed(); IEnumerable <int> expected = new int[] { 5, 4 }; CollectionAssert.AreEqual(actual.ToList(), expected.ToList(), "You failed!"); }