예제 #1
0
        public void DoesConvert(string template, string input, string expect)
        {
            var convert = PluralizeExtensions.ToCase(template);
            var result  = convert(input);

            Assert.That(result, Is.EqualTo(expect));
        }
예제 #2
0
        public void DoesntConvert(string template, string input)
        {
            var convert = PluralizeExtensions.ToCase(template);
            Func <string, string> nop = x => x;
            var result = convert(input);

            Assert.That(result, Is.EqualTo(input));
        }