Exemple #1
0
        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()));
        }
Exemple #2
0
        public void PreserveNullIDsTest()
        {
            Guid testId = Guid.NewGuid();

            GuidMap map = new GuidMap();

            Assert.AreEqual(null, map.MapId(null));
        }