public void ResetGUIDTest() { for (int i = 0; i < 100; i++) { string number = i.ToString("X"); GUIDGenerator.ResetProvider(); string result1 = GUIDGenerator.GenerateDeterministicGUID(number); GUIDGenerator.ResetProvider(); string result2 = GUIDGenerator.GenerateDeterministicGUID(number); Assert.AreEqual(result1, result2); } }
public void ConsistencyTest() { GUIDGenerator.ResetProvider(); for (int i = 0; i < 100; i++) { string genKey = i.ToString("X"); string gen = GUIDGenerator.GenerateDeterministicGUID(genKey); for (int j = 0; j < 100; j++) { string gen2 = GUIDGenerator.GenerateDeterministicGUID(genKey); Assert.AreEqual(gen, gen2); } } }