[InlineData("Visa", "MC", null)] //Person 2 public void Case3_ShouldReturnWalletInterest(string Card1, string Card2, string Card3) { double expected = CardInterestCalculation.CardCal(Card1) + CardInterestCalculation.CardCal(Card2) + CardInterestCalculation.CardCal(Card3); double actual = ClearentTestCases.CaseWithCards(Card1, Card2, Card3); Assert.Equal(expected, actual); }
//if return total interest = 16 then all the cards single interest values are correct public void Case1_ShouldReturnTotalCardInterest_All3Cards() { double expected = 16; double actual = ClearentTestCases.Case1(); Assert.Equal(expected, actual); }