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

            Assert.IsTrue(flag);
        }
示例#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);
        }