コード例 #1
0
        public void CanNotRemoveNotAddedCustomer()
        {
            CustomerBook aCustomerBook = new CustomerBook();
            CheckInAndCheckOutCustomersForTesting someTest      = new CheckInAndCheckOutCustomersForTesting();
            CatchExceptionsForTesting             catchingATest = new CatchExceptionsForTesting();

            CustomerBookTestingExceptionCatcher.TryCustomerBookActionForTesting(aCustomerBook, someTest.RemoveJonhLennonFromCustomerBook, catchingATest.CatchRemovingNotAddedCustomer);
        }
コード例 #2
0
        public void CanNotAddACustomerWithEmptyName()
        {
            CustomerBook aCustomerBook = new CustomerBook();
            CheckInAndCheckOutCustomersForTesting someTest      = new CheckInAndCheckOutCustomersForTesting();
            CatchExceptionsForTesting             catchingATest = new CatchExceptionsForTesting();

            CustomerBookTestingExceptionCatcher.TryCustomerBookActionForTesting(aCustomerBook, someTest.AddNoNamedToCustomerBook, catchingATest.CatchAddingACustomerWithEmptyName);
        }