public void UpdateTripTransportCar() { TripClass trip = new TripClass("5000", DateTime.Now.ToString(), user, "Bike"); trip.Update("carID", car.CarID); Assert.AreEqual("", trip.Select("otherTransport")); trip.Delete(); user.Delete(); }
public void UpdateTripTransportOther() { TripClass trip = new TripClass("5000", DateTime.Now.ToString(), user, car); trip.Update("otherTransport", "Bike"); // Because carID is an INT it will show 0 if there is no ID connected to it Assert.AreEqual("0", trip.Select("carID")); trip.Delete(); user.Delete(); }