예제 #1
0
파일: UnitTest1.cs 프로젝트: cmd-coder/URP
        public void matchEmail_Email_ReturnsTrue(string email)//Test mobile email id of the user
        {
            patternMatch obj = new patternMatch();
            //string email = "*****@*****.**";
            bool result = obj.matchEmail(email);

            Assert.AreEqual(true, result);
        }
예제 #2
0
파일: UnitTest1.cs 프로젝트: cmd-coder/URP
        public void matchEmail_Email_ThrowsCustomException(string email)//Test mobile email id of the user
        {
            patternMatch obj = new patternMatch();

            //string email = "*****@*****.**";
            try
            {
                bool checkEmail = obj.matchEmail(email);
            }
            catch (CustomException ce)
            {
                Assert.AreEqual("Invalid Email", ce.Message);
            }
        }