Пример #1
0
        public void TestMessageHeader_GetHashCode()
        {
            var h1 = new MessageHeader(_testProps);
            var h2 = new MessageHeader(_testProps);

            // "A hash function must have the following properties: - If two objects compare as equal, the GetHashCode() method for each object must return the same value"
            Assert.AreEqual(h1, h2);
            Assert.AreEqual(h1.GetHashCode(), h2.GetHashCode());
        }