Beispiel #1
0
        public void Test_CompanyEquatable()
        {
            var c1     = new CompanyModel(1, "A", "B", "C", "Firma #1", "UID #1");
            var c2Isc1 = new CompanyModel(1, "A", "B", "C", "Firma #1", "UID #1");
            var c3     = new CompanyModel(9, "Street X", "Street Y", "Street Z", "Firma #2", "UID #2");

            Assert.IsTrue(c1.Equals(c2Isc1));
            Assert.AreEqual(c1, c1);
            Assert.AreEqual(c1, c2Isc1);
            Assert.AreNotEqual(c1, c3);
        }