public void TestPersonInterest() { CreditCardInterestRate.CreditCards[] cards = { discover, visa, masterCard }; CreditCardInterestRate.Wallet wallet = new CreditCardInterestRate.Wallet(cards); CreditCardInterestRate.Wallet[] walArr = { wallet }; CreditCardInterestRate.Persons person = new CreditCardInterestRate.Persons(walArr); Assert.AreEqual(16.0, person.getPersonInterest()); }
public void TestPersonInterest() { CreditCardInterestRate.CreditCards[] cardArr1 = { discover, visa }; CreditCardInterestRate.CreditCards[] cardArr2 = { masterCard }; CreditCardInterestRate.Wallet wallet1 = new CreditCardInterestRate.Wallet(cardArr1); CreditCardInterestRate.Wallet wallet2 = new CreditCardInterestRate.Wallet(cardArr2); CreditCardInterestRate.Wallet[] walArr = { wallet1, wallet2 }; CreditCardInterestRate.Persons person = new CreditCardInterestRate.Persons(walArr); Assert.AreEqual(16, person.getPersonInterest()); }