private void AssertAllItems(IEnumerator result)
        {
            var expected = Range(ItemCount);

            for (var i = 0; i < ItemCount; ++i)
            {
                var nextItem = (Item
                                )IteratorPlatform.Next(result);
                expected.Remove(nextItem.id);
            }
            Assert.AreEqual("[]", expected.ToString());
        }
        private void AssertAllItems(IEnumerator result)
        {
            Collection4 expected = Range(ItemCount);

            for (int i = 0; i < ItemCount; ++i)
            {
                ConcurrentLazyQueriesTestCase.Item nextItem = (ConcurrentLazyQueriesTestCase.Item
                                                               )IteratorPlatform.Next(result);
                expected.Remove(nextItem.id);
            }
            Assert.AreEqual("[]", expected.ToString());
        }