Beispiel #1
0
        public void ReversEnumerator()
        {
            int num  = 50000;
            var list = new SortSet <int, int>();

            for (int i = 0; i < num; i++)
            {
                list.Add(i, i);
            }

            int n = 0;
            var e = list.ReversEnumerator();

            while (e.MoveNext())
            {
                var v = e.Current;
                Assert.AreEqual(num - ++n, v);
            }
        }