Esempio n. 1
0
        private void TestHashCodeAndEqualsSymmetric()
        {
            KeyMeta otherKeyMeta = new KeyMeta(KeyId, created);

            Assert.True(keyMeta.GetHashCode() == otherKeyMeta.GetHashCode());
            Assert.NotSame(keyMeta, otherKeyMeta);
            Assert.True(keyMeta.Equals(otherKeyMeta) && otherKeyMeta.Equals(keyMeta));
        }