public void Remove_ShouldThrowExceptionIfTheDatabaseIsEmpty() { this.db = new PersonsDatabase(); Assert.Throws <InvalidOperationException>(() => this.db.Remove(), "Exception is not thrown."); }
public void CreateSampleDb() { // db = new PersonsDatabase(); //// db = new PersonsDatabase(new Person("Toni", 5)); db = new PersonsDatabase(new Person("Toni", 5), new Person("Miro", 2)); }