public void TestRetire() { UniqueNamer test = new UniqueNamer(); test.Name("a"); string a_1 = test.Name("a"); // should be a_1 test.Retire("a"); Assert.AreEqual(test.Name("a"), "a"); Assert.AreEqual(test.Name("a"), "a_2"); }
public void TestRetire() { UniqueNamer test = new UniqueNamer(); test.Name("a"); string a_1 = test.Name("a"); // should be a_1 test.Retire("a"); Assert.AreEqual(test.Name("a"), "a"); Assert.AreEqual(test.Name("a"), "a_2"); }