예제 #1
0
        public void Deve_Retornar_Cnpj_Invalido(string cnpj)
        {
            CpfCnpjVO testCnpj = cnpj;

            Assert.False(testCnpj.IsValid(), $"CNPJ {cnpj} é valido");
            Assert.Throws <DomainException>(() => testCnpj.Validate());
        }
예제 #2
0
        public void Deve_Retornar_Cpf_Invalido(string cpf)
        {
            CpfCnpjVO testCpf = cpf;

            Assert.False(testCpf.IsValid(), $"Cpf {cpf} é valido");
            Assert.Throws <DomainException>(() => testCpf.Validate());
        }
예제 #3
0
        public void Deve_Retornar_Cnpj_Valido(string cnpj)
        {
            CpfCnpjVO testCnpj = cnpj;

            Assert.True(testCnpj.IsValid(), $"CNPJ {cnpj} é invalido");
        }
예제 #4
0
        public void Deve_Retornar_Cpf_Valido(string cpf)
        {
            CpfCnpjVO testCpf = cpf;

            Assert.True(testCpf.IsValid(), $"Cpf {cpf} é invalido");
        }