Пример #1
0
        public void TestGetHashCode_HasIdOnly()
        {
            var dto = new SimpleLookupDTO
            {
                Id = 1
            };

            Assert.AreEqual(dto.Id.GetHashCode(), dto.GetHashCode());
        }
Пример #2
0
        public void TestGetHashCode_HasValue()
        {
            var dto = new SimpleLookupDTO
            {
                Id    = 1,
                Value = "value"
            };

            Assert.AreEqual(dto.Value.GetHashCode(), dto.GetHashCode());
        }