コード例 #1
0
        public void Validate_WrongEmail_ReturnFalse()
        {
            GeneralValidation val   = new GeneralValidation();
            string            email = "wrong";

            Assert.IsFalse(val.IsValidEmail(email));
        }
コード例 #2
0
        public void Validate_RightEmail_ReturnTrue()
        {
            GeneralValidation val   = new GeneralValidation();
            string            email = "*****@*****.**";

            Assert.IsTrue(val.IsValidEmail(email));
        }