コード例 #1
0
        public void Return_True_On_IsIdentical_When_Identity_Is_Equal()
        {
            var x = new CommercialProduct
            {
                HpKode = 1
            };
            var y = new CommercialProduct
            {
                HpKode = 1
            };

            Assert.IsTrue(x.IsIdentical(y));
        }
コード例 #2
0
        public void Return_False_On_IsIdentical_When_Identity_Is_Different()
        {
            var x = new CommercialProduct
            {
                HpKode = 1
            };
            var y = new CommercialProduct
            {
                HpKode = 2
            };

            Assert.IsFalse(x.IsIdentical(y));
        }