private void Address_is_not_equal_if_address_line3_is_different() { var address1 = new GedcomAddress { AddressLine3 = "PO Box 1234" }; var address2 = new GedcomAddress { AddressLine3 = "Apt 123" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_address_line1_is_different() { var address1 = new GedcomAddress { AddressLine1 = "1234 Main St" }; var address2 = new GedcomAddress { AddressLine1 = "6789 Side St" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_address_line2_is_different() { var address1 = new GedcomAddress { AddressLine2 = "Anywhere" }; var address2 = new GedcomAddress { AddressLine2 = "Somewhere" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_state_is_different() { var address1 = new GedcomAddress { State = "VA" }; var address2 = new GedcomAddress { State = "CA" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_www3_is_different() { var address1 = new GedcomAddress { Www3 = "www.some-site.com" }; var address2 = new GedcomAddress { Www3 = "www.another-site.edu" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_post_code_is_different() { var address1 = new GedcomAddress { PostCode = "12345" }; var address2 = new GedcomAddress { PostCode = "67890" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_phone3_is_different() { var address1 = new GedcomAddress { Phone3 = "123-4567" }; var address2 = new GedcomAddress { Phone3 = "999-9999" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_email3_is_different() { var address1 = new GedcomAddress { Email3 = "email_one@domain" }; var address2 = new GedcomAddress { Email3 = "email_two@another_domain" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_country_is_different() { var address1 = new GedcomAddress { Country = "USA" }; var address2 = new GedcomAddress { Country = "Canada" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_not_equal_if_city_is_different() { var address1 = new GedcomAddress { City = "City One" }; var address2 = new GedcomAddress { City = "City Two" }; Assert.False(address1.CompareTo(address2) == 0); }
private void Address_is_equal_if_change_date_is_different() { var address1 = new GedcomAddress { ChangeDate = new GedcomChangeDate(null) { Date1 = "01 Jan 1900" } }; var address2 = new GedcomAddress { ChangeDate = new GedcomChangeDate(null) { Date1 = "01 Jan 2000" } }; Assert.True(address1.CompareTo(address2) == 0); }