/// <summary> /// Disposes of resources used by this instance. /// </summary> /// <param name="disposing">A value indicating whether to dispose of managed resources.</param> protected override void Dispose(bool disposing) { if (!this.disposed) { if (this.repository != null) { this.repository.Dispose(); this.repository = null; } this.disposed = true; } }
public void SQLiteRepositoryEnsureDatabase() { string path = Path.GetFullPath(Guid.NewGuid().ToString() + ".sqlite"); using (SQLiteRepository repo = new SQLiteRepository("data source=" + path)) { } Assert.IsTrue(File.Exists(path)); }