Exemple #1
0
        public void IsBookExisting_BookExistInDB_ReturnsTrue()
        {
            PwCLibrary.DBAccess.DBHandler db = new PwCLibrary.DBAccess.DBHandler();
            bool result = db.IsBookExisting("TestBookLoaned");

            Assert.IsTrue(result);
        }
Exemple #2
0
        public void IsBookExisting_NoSuchBookInDB_ReturnsFalse()
        {
            PwCLibrary.DBAccess.DBHandler db = new PwCLibrary.DBAccess.DBHandler();
            bool result = db.IsBookExisting("TestBookNotExisting");

            Assert.IsFalse(result);
        }