public void CopyToTest() { var intSet = new Kibnet.IntSet(TestHelper.GetEnumerable(100000, 1)); var array = new int[intSet.Count]; intSet.CopyTo(array); var last = 0; Assert.Equal(1, intSet.First()); foreach (int i in array) { Assert.Equal(last + 1, i); last = i; } Assert.Equal(100000, intSet.Last()); }