public void EnsureIDRelationshipTest() { Guid testId = Guid.NewGuid(); GuidMap map = new GuidMap(); Assert.AreEqual(map.MapId(testId), map.MapId(testId)); Assert.AreNotEqual(map.MapId(testId), map.MapId(Guid.NewGuid())); }
public void PreserveNullIDsTest() { Guid testId = Guid.NewGuid(); GuidMap map = new GuidMap(); Assert.AreEqual(null, map.MapId(null)); }