예제 #1
0
        public void ItemRequest_GetHasCode_ItemNull()
        {
            var itemRequest = new ItemRequest
            {
            };

            var result = itemRequest.GetHashCode();

            Assert.AreEqual(0, result);
        }
예제 #2
0
        public void ItemRequest_GetHasCode()
        {
            var valueInt = 99;

            var itemRequest = new ItemRequest
            {
                Item = new Item
                {
                    Id = valueInt
                }
            };

            var hashZero = valueInt.GetHashCode();

            var result = itemRequest.GetHashCode();

            Assert.AreEqual(hashZero, result);
        }