Пример #1
0
        public void Seed64StartsAtOne()
        {
            var seed = new Seed64();

            Assert.AreEqual(1, seed.Peek());

            Assert.AreEqual(1, seed.Increment());

            Assert.AreEqual(1, seed.LastSeed);
        }
Пример #2
0
        public void Seed64StartsWithParameter()
        {
            var seed = new Seed64(999);

            Assert.AreEqual(1000, seed.Peek());

            Assert.AreEqual(1000, seed.Increment());

            Assert.AreEqual(1000, seed.LastSeed);
        }
Пример #3
0
        public void Seed64OpensUnused()
        {
            var seed = new Seed64(999);

            Assert.AreEqual(1000, seed.Increment());

            seed.Open(500);

            Assert.AreEqual(500, seed.Peek());

            Assert.AreEqual(500, seed.Increment());

            Assert.AreEqual(1000, seed.LastSeed);
        }