Esempio n. 1
0
        public void Donation_Equals_NoDifferences()
        {
            var otherDonation = new Donation {
                ID = _id, Reason = _reason, Amount = _amount, DonationDate = _donationDate, Comments = _comments
            };

            Assert.IsTrue(_targetDonation.Equals(otherDonation));
            Assert.IsTrue(otherDonation.Equals(_targetDonation));
        }
Esempio n. 2
0
        public void Donation_Equals_DifferencesInAllFields()
        {
            var otherDonation = new Donation {
                ID = _id * 2, Reason = _reason + _reason, Amount = _amount * 2, DonationDate = DateTime.MaxValue, Comments = _comments + _comments
            };

            Assert.IsFalse(_targetDonation.Equals(otherDonation));
            Assert.IsFalse(otherDonation.Equals(_targetDonation));
        }
Esempio n. 3
0
        public void Donation_Equals_DifferenceInId()
        {
            var otherDonation = new Donation {
                Id = _id * 2, Reason = _reason, Amount = _amount, DonationDate = _donationDate, Comments = _comments
            };

            Assert.IsFalse(_targetDonation.Equals(otherDonation));
            Assert.IsFalse(otherDonation.Equals(_targetDonation));
        }