S
Sven Neumann
I tried to use the RegexStringValidatorAttribute for validating a
ConfigurationProperty type of string. In some cases an ArgumentException is
thrown and I do not understand why.
I wrote a simple test to reporduces the issue.
RegexStringValidatorAttribute stringValidator = new
RegexStringValidatorAttribute("Test");
stringValidator.ValidatorInstance.Validate("Test"); // does not throw an
exception
Assert.IsTrue(stringValidator.Match("Test")); // this fails.
Any ideas?
Thanks
ConfigurationProperty type of string. In some cases an ArgumentException is
thrown and I do not understand why.
I wrote a simple test to reporduces the issue.
RegexStringValidatorAttribute stringValidator = new
RegexStringValidatorAttribute("Test");
stringValidator.ValidatorInstance.Validate("Test"); // does not throw an
exception
Assert.IsTrue(stringValidator.Match("Test")); // this fails.
Any ideas?
Thanks