Beispiel #1
0
        public void addTripTest()
        {
            TripDB tripDB = new TripDB();
            int    before = tripDB.getNoOfTrip();
            int    tripID = tripDB.addTrip(3);
            int    after  = tripDB.getNoOfTrip();

            Assert.AreEqual(before + 1, after);
            Assert.AreEqual(tripID, before);
        }
Beispiel #2
0
        public void getNoOfTripTest()
        {
            TripDB tripDB = new TripDB();
            int    tripID = tripDB.addTrip(3);
            int    n      = tripDB.getNoOfTrip();

            Assert.AreEqual(n, 1);
        }
Beispiel #3
0
        public void TripDBTest()
        {
            TripDB tripDB = new TripDB();
            int    p      = tripDB.getNoOfPayer();
            int    n      = tripDB.getNoOfTrip();

            Assert.AreEqual(p, 0);
            Assert.AreEqual(n, 0);
        }