コード例 #1
0
        public void Equal_When_All_Fields_Are_Equal()
        {
            var x = GetPrescriptionProduct();
            var y = GetPrescriptionProduct();

            var comparer = new PrescriptionProductComparer();
            bool result = comparer.Equals(x, y);

            Assert.IsTrue(result);
        }
コード例 #2
0
        public void Not_Equal_When_PrNmNr_Is_Different()
        {
            var x = GetPrescriptionProduct();
            var y = GetPrescriptionProduct();
            y.PrNmNr = 3;

            var comparer = new PrescriptionProductComparer();
            bool result = comparer.Equals(x, y);

            Assert.IsFalse(result);
        }
コード例 #3
0
        public void Not_Equal_When_MutKod_Is_Different()
        {
            var x = GetPrescriptionProduct();
            var y = GetPrescriptionProduct();
            y.MutKod = MutKod.RecordUpdated;

            var comparer = new PrescriptionProductComparer();
            bool result = comparer.Equals(x, y);

            Assert.IsFalse(result);
        }