コード例 #1
0
        public void getPriceArrayTest()
        {
            TripDB tripDB   = new TripDB();
            int    tripID   = tripDB.addTrip(1);
            int    payerId1 = tripDB.addPayer(tripID, 0, 3);

            tripDB.addPrice(payerId1, 0, 1.0);
            tripDB.addPrice(payerId1, 1, 2.0);
            tripDB.addPrice(payerId1, 2, 3.0);
            double[] priceArray = tripDB.getPriceArray(payerId1);
            double[] input      = new double[] { 1.0, 2.0, 3.0 };
            CollectionAssert.AreEqual(input, priceArray);
        }