ListParameters() public method

public ListParameters ( ) : string>.System.Collections.Generic.IDictionary
return string>.System.Collections.Generic.IDictionary
Esempio n. 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"]);
 }
Esempio n. 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"]);
 }