Exemple #1
0
        public void EqualsObjectCastTest()
        {
            string             name = "test-name";
            CountrySubdivision countrySubdivision = new CountrySubdivision(name: name);
            object             obj = new CountrySubdivision(name: name);

            Assert.True(countrySubdivision.Equals(obj));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
 private static bool Contains(CountrySubdivision subdivision, LocationReference location)
 {
     return(subdivision.Equals(location.CountrySubdivision));
 }