public void EqualsObjectCastTest() { string name = "test-name"; CountrySubdivision countrySubdivision = new CountrySubdivision(name: name); object obj = new CountrySubdivision(name: name); Assert.True(countrySubdivision.Equals(obj)); }
public void EqualsTest() { string name = "test-name"; CountrySubdivision name1 = new CountrySubdivision(name: name); Assert.Equal(name1, name1); Assert.Equal(name1, new CountrySubdivision(name: name)); Assert.NotEqual(name1, new CountrySubdivision(name: name + "1")); Assert.False(name1.Equals(null)); }
private static bool Contains(CountrySubdivision subdivision, LocationReference location) { return(subdivision.Equals(location.CountrySubdivision)); }