public void ValidateIncorrectEmailAddressWithOutDomain()
        {
            //arrange
            string email = "[email protected]";

            //act
            Helpers.RegexValidator emailValidator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.Email);

            //assert
            Assert.IsFalse(emailValidator.Validate(email));
        }
        public void ValidateIPAddress()
        {
            //arrange
            string ipaddress = "192.168.10.10";

            //act
            Helpers.RegexValidator ipAddressValidator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.IPAddress);

            //assert
            Assert.IsTrue(ipAddressValidator.Validate(ipaddress));
        }
        public void ValidateEmailAddress()
        {
            //arrange
            string email = "*****@*****.**";

            //act
            Helpers.RegexValidator emailValidator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.Email);

            //assert
            Assert.IsTrue(emailValidator.Validate(email));
        }
        public void ValidateInternationNumberWithPlus()
        {
            //arrange
            string CellNo = "+27725462359";

            //act
            Helpers.RegexValidator cellNoValidator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.InternationalMobile);

            //assert
            Assert.IsTrue(cellNoValidator.Validate(CellNo));
        }
        public void ValidateInternationNumberNoAlpha()
        {
            //arrange
            string CellNo = "abcdefghij";

            //act
            Helpers.RegexValidator cellNoValidator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.InternationalMobile);

            //assert
            Assert.IsFalse(cellNoValidator.Validate(CellNo));
        }
        public void ValidateEthereumAddress()
        {
            //arrange
            string value = "0x93a21e8a5886276fe2bae4a6499272eb5d8ce836";

            //act
            Helpers.RegexValidator validator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.EthereumAddress);

            //assert
            Assert.IsTrue(validator.Validate(value));
        }
        public void ValidateBitCoinAddress()
        {
            //arrange
            string value = "1MzJvJNZnTZx13MLAMUPkUuyaeKtgF2PSH";

            //act
            Helpers.RegexValidator validator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.BitCoinAddress);

            //assert
            Assert.IsTrue(validator.Validate(value));
        }
        public void ValidateNotNumeric()
        {
            //arrange
            string value = "123A4567";

            //act
            Helpers.RegexValidator validator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.Numeric);

            //assert
            Assert.IsFalse(validator.Validate(value));
        }
        public void ValidateNonAlphaChar()
        {
            //arrange
            string alpha = "abcdEFGH1234";

            //act
            Helpers.RegexValidator alphaValidator = new Helpers.RegexValidator(Helpers.RegexValidator.ValidationType.AlphaChars);

            //assert
            Assert.IsFalse(alphaValidator.Validate(alpha));
        }