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