public void TestMethod4() { TripCostRedistributor.Participant participant = new TripCostRedistributor.Participant(); participant.TotalMoneySpent = 11; double result = campingBill.Refund(participant, 10.0); Assert.AreEqual(-1.0, result); }
public void TestMethod3() { TripCostRedistributor.Participant participant = new TripCostRedistributor.Participant(); participant.Expenses.Add(2); participant.Expenses.Add(3.3); double result = campingBill.TotalCost(participant); Assert.AreEqual(5.3, result); }