Пример #1
0
 //Delete everything between tests
 public void Dispose()
 {
     Book.DeleteAll();
     Author.DeleteAll();
     Copy.DeleteAll();
     Checkout.DeleteAll();
 }
Пример #2
0
        public void TestGetAll_NoCheckouts_ReturnsEmptyList()
        {
            //Arrange, Act
            Checkout.DeleteAll();
            List <Checkout> allCheckouts = Checkout.GetAll();

            //Assert
            List <Checkout> actualResult   = allCheckouts;
            List <Checkout> expectedResult = new List <Checkout> {
            };

            Assert.Equal(expectedResult, actualResult);
        }