public void Chunk_ShouldChunkProperly() { var input = new List <int> { 1, 2, 3, 4, 5 }; var expected = new List <List <int> > { new List <int> { 1, 2 }, new List <int> { 3, 4 }, new List <int> { 5 } }; ListUtil.Chunk(input, 2).ShouldBe(expected); }