private void testToArray(Set <DSInteger> the_set) { DSInteger[] array = the_set.toArray(); Sorting <DSInteger> .Sort(Sorts.QuickSort, ref array); for (int i = 10; i < 140; i += 10) { Assert.AreNotEqual(-1, Searching.binarySearch <DSInteger>(array, new DSInteger(i))); } Assert.AreEqual(13, the_set.size()); }