示例#1
0
        public void GeoCodeWithNullValueIsInvalid()
        {
            string value     = null;
            string valueName = "HSAS";
            var    geoCode   = new GeoCode(valueName, value);

            var geoCodeValidator = new GeoCodeValidator(geoCode);

            Assert.False(geoCodeValidator.IsValid);
        }
示例#2
0
        public void GeoCodeWithValueAndValueNameIsValid()
        {
            string value     = "0123";
            string valueName = "HSAS";
            var    geoCode   = new GeoCode(valueName, value);

            var geoCodeValidator = new GeoCodeValidator(geoCode);

            Assert.True(geoCodeValidator.IsValid);
        }