AddRule() public method

Adds (or replaces) the rule.
public AddRule ( string searchPattern, string replacementPattern ) : void
searchPattern string The pattern to match upon.
replacementPattern string The replacement pattern.
return void
        public void WordsCoveredByAddedRulesArePluralizedAccordingToThoseRules()
        {
            var inflectionService = new EnglishInflectionService();
            inflectionService.AddRule("(.+)", @"$1zzz");

            Assert.Equal("Customerzzz", inflectionService.ToPlural("Customer"));
        }