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

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

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

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

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