Ejemplo n.º 1
0
        public void getPayerArrayTest()
        {
            TripDB tripDB   = new TripDB();
            int    tripID   = tripDB.addTrip(3);
            int    payerId1 = tripDB.addPayer(tripID, 0, 1);
            int    payerId2 = tripDB.addPayer(tripID, 1, 1);
            int    payerId3 = tripDB.addPayer(tripID, 2, 1);

            int[] input  = new int[] { payerId1, payerId2, payerId3 };
            int[] payers = tripDB.getPayerArray(tripID);
            CollectionAssert.AreEqual(input, payers);
        }