public void ClearIDCacheAndIncrementNextID() { var factory = new IDFactory(); factory.GetID(0, 0); factory.GetID(0, 1); factory.GetID(0); factory.GetID(1); factory.ClearCacheAndIncrementNextID(); Assert.AreEqual(4u, factory.GetID(0, 0)); Assert.AreEqual(5u, factory.GetID(0, 1)); Assert.AreEqual(6u, factory.GetID(0)); Assert.AreEqual(7u, factory.GetID(1)); }