コード例 #1
0
        public void TestMethod4()
        {
            TripCostRedistributor.Participant participant = new TripCostRedistributor.Participant();
            participant.TotalMoneySpent = 11;

            double result = campingBill.Refund(participant, 10.0);

            Assert.AreEqual(-1.0, result);
        }
コード例 #2
0
        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);
        }