示例#1
0
        public void Test5()
        {
            var shuffle = new RandomPool(5);
            var list    = new List <int>();
            var current = shuffle.GetNext();

            while (current >= 0)
            {
                list.Add(current);
                current = shuffle.GetNext();
            }

            Assert.AreEqual(5, list.Count);
            Assert.Contains(0, list);
            Assert.Contains(1, list);
            Assert.Contains(2, list);
            Assert.Contains(3, list);
            Assert.Contains(4, list);
        }