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); }
public void getNoOfTripTest() { TripDB tripDB = new TripDB(); int tripID = tripDB.addTrip(3); int n = tripDB.getNoOfTrip(); Assert.AreEqual(n, 1); }
public void TripDBTest() { TripDB tripDB = new TripDB(); int p = tripDB.getNoOfPayer(); int n = tripDB.getNoOfTrip(); Assert.AreEqual(p, 0); Assert.AreEqual(n, 0); }