code_junkie

How do you unit test regular expressions

Nov 13th, 2011
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public bool ValidateEmailAddress( string emailAddr )
  2. {
  3. // Validate the email address using regular expression.
  4. return RegExProvider.Match( this.ValidEmailRegEx, emailAddr );
  5. }
Add Comment
Please, Sign In to add comment