Beispiel #1
0
        public void Proposal_Equality()
        {
            var proposal1 = new Proposal("Proposal");
            var proposal2 = new Proposal("Proposal");

            Assert.AreNotEqual(proposal1.Id, proposal2.Id);
            Assert.AreEqual(proposal1.Title, proposal2.Title);
            Assert.AreEqual(proposal1, proposal2);

            Assert.AreEqual(proposal1, proposal1);
            Assert.AreEqual(proposal2, proposal2);

            Assert.IsTrue(proposal1.IsSameAs(proposal1));
            Assert.IsFalse(proposal1.IsSameAs(proposal2));
        }