Example #1
0
        public void Domain_Conta_Validar_LimiteNegativoDeveLancarExcessao()
        {
            //Arrange
            _conta = ContaObjectMother.GetContaLimiteNegativoComMock(_cliente.Object);
            _conta.RealizarDeposito(100);
            //Action
            Action act = () => _conta.Validar();

            //Verify
            act.Should().Throw <ContaLimiteInvalidoException>();
        }