public void IsBookExisting_BookExistInDB_ReturnsTrue() { PwCLibrary.DBAccess.DBHandler db = new PwCLibrary.DBAccess.DBHandler(); bool result = db.IsBookExisting("TestBookLoaned"); Assert.IsTrue(result); }
public void IsBookExisting_NoSuchBookInDB_ReturnsFalse() { PwCLibrary.DBAccess.DBHandler db = new PwCLibrary.DBAccess.DBHandler(); bool result = db.IsBookExisting("TestBookNotExisting"); Assert.IsFalse(result); }