public void GetEffectiveLoanAmountShouldWorkCorrectly() { //Act var exception = Record.Exception(() => EffectiveLoanAmount.Get(BankCommissionCollectionTypes.BankCommissionAmortizedOverTheLifeOfLoan, 10000, 2000)); //Assert exception.Should().BeNull(); }
public void WhenBankComissionTypeIsZero_GetEffectiveLoanAmountShouldThrowArgumentException() { //Act var exception = Record.Exception(() => EffectiveLoanAmount.Get(0, 10000, 2000)); //Assert exception.Should().NotBeNull(); exception.GetType().Should().Be(typeof(ArgumentException)); }