public void Parse_ValidString()
        {
            var ruleString = @"^(x+) / $1x";
            var rule       = RenameRule.Parse(ruleString);

            Assert.IsTrue(rule.IsMatch("xx_"));
            Assert.AreEqual("xxx_", rule.Apply("xx_"));
        }
 public void Parse_InvalidRegex()
 {
     var ruleString = @"(.**) / $1x";
     var rule       = RenameRule.Parse(ruleString);
 }
 public void Parse_InvalidString()
 {
     var ruleString = @"(.+) | $1x";
     var rule       = RenameRule.Parse(ruleString);
 }