示例#1
0
 public void ExpandPickupWithOutAnExplicitPattern()
 {
     Pickup sh = new Pickup();
     string results = sh.ReplaceShorthandPatternWithFormalRegex("ab{test} d");
     Assert.AreEqual("ab(?<test>.*?) d",results);
 }
示例#2
0
 public void ExpandPickupWithAnExplicitPattern(string line, string expectedResults)
 {
     Pickup sh = new Pickup();
     string results = sh.ReplaceShorthandPatternWithFormalRegex(line);
     Assert.AreEqual(expectedResults, results);
 }