Example #1
0
        public void TestLibraryBookUsing()
        {
            LibraryBook newBook = new LibraryBook(BookType.Comedy, 23);
            int         res1    = newBook.GetFromStack();
            bool        res2    = newBook.isInStack();
            int         res3    = newBook.PutToStack();
            bool        res4    = newBook.isInStack();

            Assert.AreEqual(0, res1);
            Assert.AreEqual(false, res2);
            Assert.AreEqual(1, res3);
            Assert.AreEqual(true, res4);
        }