Ejemplo n.º 1
0
        public void RangeTest3()
        {
            var uid      = new IdentHotKey();
            int expected = IdentHotKey.MIN_VALUE;

            for (int i = 0; i < 12; ++i)
            {
                uid.Next();
                Assert.AreEqual(++expected, uid.Current);
                Assert.AreEqual(++expected, uid.Next().Current);
            }
        }
Ejemplo n.º 2
0
        public void RangeTest4()
        {
            var uid = new IdentHotKey();

            Assert.AreEqual(0, uid.Iter.Count());
            uid.Next().Next().Next();
            Assert.AreEqual(3, uid.Iter.Count());
        }