public void HappyTestCheckCustomerMethodByPassingTwoDatesAndGettingTrueIfCorrect() { String customerType = "Reward"; bool flag = ManageHotels.CheckCustomerType(customerType); Assert.IsTrue(flag); }
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); }