public void Seed64StartsAtOne() { var seed = new Seed64(); Assert.AreEqual(1, seed.Peek()); Assert.AreEqual(1, seed.Increment()); Assert.AreEqual(1, seed.LastSeed); }
public void Seed64StartsWithParameter() { var seed = new Seed64(999); Assert.AreEqual(1000, seed.Peek()); Assert.AreEqual(1000, seed.Increment()); Assert.AreEqual(1000, seed.LastSeed); }
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); }