public void ValidRemoveData() { var array = new Person[1] { new Person(1, "Ivan1"), }; var database = new ExtendedDatabasee(array); database.Remove(); Assert.IsTrue(database.Count == 0); }
public void RemovePersonWhenDatabaseIsEmpty() { var database = new ExtendedDatabasee(); Assert.Throws <InvalidOperationException>(() => database.Remove()); }