public void AddTripTest() { api.AddTrip(new BikeTrip { Distance = 900, StartTime = DateTime.Now - TimeSpan.FromHours(1), EndTime = DateTime.Now, }).Wait(); api.AddTrip(new BikeTrip { Distance = 800, StartTime = DateTime.Now - TimeSpan.FromHours(2), EndTime = DateTime.Now, }).Wait(); Assert.IsTrue(File.Exists(api.DbPath)); Assert.AreEqual(2, new SQLiteConnection(api.DbPath).Table <BikeTrip> ().Count()); }