コード例 #1
0
        public void Remove_ShouldThrowExceptionIfTheDatabaseIsEmpty()
        {
            this.db = new PersonsDatabase();

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