Example #1
0
        public void GeoNames_Country_ShouldOverrideToString()
        {
            var model = new Country
            {
                CountryName = "country name",
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(model.CountryName);
        }
Example #2
0
        public void GeoNames_Country_ShouldBePublic()
        {
            var model = new Country();

            model.ShouldNotBeNull();
        }
Example #3
0
        public void GeoNames_Toponym_StringProperties_ShouldBeConvertedToNull_WhenEmptyOrWhiteSpace()
        {
            var model = new Country
            {
                FipsCode = "   ",
                CapitalCityName = "   ",
                AreaInSqKm = "   ",
                CurrencyCode = "   ",
                Languages = "   ",
            };

            model.ShouldNotBeNull();
            model.FipsCode.ShouldBeNull();
            model.CapitalCityName.ShouldBeNull();
            model.AreaInSqKm.ShouldBeNull();
            model.CurrencyCode.ShouldBeNull();
            model.Languages.ShouldBeNull();
        }