public void DeveraFalhar_SeAlgumaPropriedadeDoObjejto_Invalida() { var expected = new Exception(); var result = validation.IsValid(EmprestimoMock.EmprestimoDemoInvalido()); Assert.AreEqual(expected, result); }
public void DeveraFalhar_SeDataFinal_MaiorQueDataInicial() { var expected = false; var result = validation.ValidarDataFim(EmprestimoMock.EmprestimoDemoInvalido()); Assert.AreEqual(expected, result); }
public void DeveraFalhar_SeAmigoId_NaoInformado() { var expected = false; var result = validation.ValidarAmigo(EmprestimoMock.EmprestimoDemoInvalido().AmigoId); Assert.AreEqual(expected, result); }
public void DeveraFalhar_SeDataInicio_MenorQueHoje() { var expected = false; var result = validation.ValidarDataInicio(EmprestimoMock.EmprestimoDemoInvalido().DataInicio); Assert.AreEqual(expected, result); }