示例#1
0
        public void Cep_Valido()
        {
            var cep = "01419-909";
            var obj = new Cep(cep);

            Assert.AreEqual(1419909, obj.CepCode);
        }
示例#2
0
        public void Cep_GetCepFormatado01419909()
        {
            var cep = "01419-909";
            var obj = new Cep(cep);

            Assert.AreEqual(cep, obj.GetCepFormatado());
        }
示例#3
0
        public void Cep_GetCepFormatado12345678()
        {
            var cep = "12345-678";
            var obj = new Cep(cep);

            Assert.AreEqual(cep, obj.GetCepFormatado());
        }
示例#4
0
        public void Cep_GetCepFormatado00000000()
        {
            var cep = "00000-000";
            var obj = new Cep(cep);

            Assert.AreEqual(cep, obj.GetCepFormatado());
        }
示例#5
0
 public void Cep_Invalido()
 {
     var cep = "asdf";
     var obj = new Cep(cep);
 }