public void DisposeClosesDatabaseConnection() { // Arrange var con = OpenConnection(); bool disposed = false; con.Disposed += (s, e) => disposed = true; var cache = new SqliteCache(con); // Act cache.Dispose(); // Assert Assert.IsTrue(disposed); }
public void DisposeClosesDatabaseConnection() { // Arrange var con = OpenConnection(); bool disposed = false; con.Disposed += (s, e) => disposed = true; var cache = new SqliteCache(con); // Act cache.Dispose(); // Assert Assert.IsTrue(disposed); }