예제 #1
0
        public void TestFlatten2()
        {
            for (var chunkSize = 1; chunkSize <= 100; chunkSize++)
            {
                for (var itemSize = 1; itemSize <= 1000; itemSize++)
                {
                    var seq = Enumerable.Range(0, itemSize).Cast<object>();
                    var chunkedList = new ChunkedList(seq, chunkSize);
                    var flattenList = chunkedList.Flatten();

                    Assert.True(flattenList.SequenceEqual(seq));
                }
            }
        }