public void RetrieveConstLoanLimit_Listing_7() { var validator = new LoanValidator(); var loanLimit = validator.LoanConstCeiling(); Console.WriteLine("LoanConstCeiling expected: {0}, actual: {1}", _expectedLoanLimit, loanLimit); }
public void LoanConstCeiling_WithNoParameter_ExpectProperValue() { // Arrange var expected = LoanValidator.StaticReadonlyLoanLimit; var classUnderTest = new LoanValidator(); // Act var actual = classUnderTest.LoanConstCeiling(); // Assert Assert.AreEqual(expected, actual); }
public void RevisedLoanAmount_Listing_7() { var validator = new LoanValidator(); var originalLoanAmount = 5000; var revisedLoanAmount = validator.LoanConstCeiling(originalLoanAmount); Console.WriteLine("LoanConstCeiling expected: {0}, actual: {1}", originalLoanAmount, revisedLoanAmount); originalLoanAmount = revisedLoanAmount; Console.WriteLine("LoanConstCeiling expected: {0}, actual: {1}", originalLoanAmount, revisedLoanAmount); }