示例#1
0
        public void Seed64StartsAtOne()
        {
            var seed = new SeedU64();

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

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

            Assert.AreEqual(1, seed.LastSeed);
        }
示例#2
0
        public void Seed64StartsWithParameter()
        {
            var seed = new SeedU64(999);

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

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

            Assert.AreEqual(1000, seed.LastSeed);
        }
示例#3
0
        public void Seed64OpensUnused()
        {
            var seed = new SeedU64(999);

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

            seed.Open(500);

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

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

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