Example #1
0
        public void HappyTestCheckCustomerMethodByPassingTwoDatesAndGettingTrueIfCorrect()
        {
            String customerType = "Reward";
            bool   flag         = ManageHotels.CheckCustomerType(customerType);

            Assert.IsTrue(flag);
        }
Example #2
0
        public void SadTestCheckCustomerMethodByPassingTwoDatesAndGettingTrueIfCorrect()
        {
            String wrongCustomerType = "WrongCustomerType";
            var    exception         = Assert.ThrowsException <HRSCustomException>(
                () => ManageHotels.CheckCustomerType(wrongCustomerType), "Customer Type is wrong");

            Assert.AreEqual("Customer Type is wrong", exception.Message);
        }