public void GeoNames_Country_ShouldOverrideToString() { var model = new Country { CountryName = "country name", }; model.ShouldNotBeNull(); model.ToString().ShouldEqual(model.CountryName); }
public void GeoNames_Country_ShouldBePublic() { var model = new Country(); model.ShouldNotBeNull(); }
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(); }