Beispiel #1
0
 public void RegularExpressionRule_Takes_Pattern_Plus_Options()
 {
     var rule = new RegularExpressionRule("myPattern", RegexOptions.Multiline | RegexOptions.IgnoreCase);
     var parameters = rule.ListParameters();
     Assert.Equal(2, parameters.Count);
     Assert.Equal("myPattern", parameters["Pattern"]);
     Assert.Equal("im", parameters["Options"]);
 }
Beispiel #2
0
 public void RegularExpressionRule_Takes_Pattern()
 {
     var rule = new RegularExpressionRule("myPattern");
     var parameters = rule.ListParameters();
     Assert.Equal(1, parameters.Count);
     Assert.Equal("myPattern", parameters["Pattern"]);
 }