public void CustomIEqualityComparer() { var p1 = new PersonWithEquals { Name = "Sarah" }; var p2 = new PersonWithEquals { Name = "Simon" }; Assert.Equal(p1, p2, new FirstLetterEqualityComparer()); }
public void ComparingReferenceTypesWithOverriddenEquals() { var p1 = new PersonWithEquals { Name = "Sarah" }; var p2 = new PersonWithEquals { Name = "Sarah" }; Assert.Equal(p1, p2); }