示例#1
0
        public void ClothesImage_Equal_ClothesImage()
        {
            var first  = ImageData.ClothesImageDomains.First();
            var second = new ClothesImageDomain(first.Id, first.Image, first.IsMain);

            Assert.True(first.Equals(second));
        }
示例#2
0
        public void ClothesImage_Equal_Ok()
        {
            const int  id     = 1;
            var        image  = new byte[0];
            const bool isMain = false;

            var clothesImageDomain = new ClothesImageDomain(id, image, isMain);

            int clothesImageHash = HashCode.Combine(id);

            Assert.Equal(clothesImageHash, clothesImageDomain.GetHashCode());
        }