Beispiel #1
0
 public void Person_InEquality()
 {
     var personCopy = new Person();
     personCopy.FirstName = "another";
     personCopy.LastName = "name";
     Assert.IsFalse(personCopy.Equals(person));
 }
Beispiel #2
0
 public void Person_CompareEquality()
 {
     var personCopy = new Person();
     personCopy.FirstName = firstName;
     personCopy.LastName = lastName;
     Assert.IsTrue(personCopy.Equals(person));
 }