public void colorize_multiple_pattern_matches_order(string original, string expected) { var pattern = new Crayons.Patterns.Pattern(); pattern.Add(@"(?<yellow>'.+?')"); pattern.Add(@"(?<red>\[.+?\])"); var str = pattern.Colorize(original); str.ToString().ShouldEqual(expected); }
public void colorize_multiple_instances(string original, string expected) { var pattern = new Crayons.Patterns.Pattern(); pattern.Add(@"(?<red>\[.+?\])"); var str = pattern.Colorize(original); str.ToString().ShouldEqual(expected); }