コード例 #1
0
        public void TestDeleteBook_ExistingBook()
        {
            // Arrange
            TestSetup();

            // Act
            int beforeCount = _catalog.Count;

            _catalog.DeleteBook("XS3220");
            int afterCount = _catalog.Count;

            // Assert
            Assert.AreEqual(4, beforeCount);
            Assert.AreEqual(beforeCount - 1, afterCount);
        }