Exemplo n.º 1
0
        public void Pluralizes_names(string input, string output)
        {
            var fakePluralizer = new FakePluralizer();
            var namer          = new CSharpUniqueNamer <DatabaseTable>(t => t.Name, new CSharpUtilities(), fakePluralizer.Pluralize);
            var table          = new DatabaseTable {
                Name = input
            };

            Assert.Equal(output, namer.GetName(table));
        }
        public void Sanitizes_name_with_pluralizer(string input, string output)
        {
            var fakePluralizer = new FakePluralizer();

            Assert.Equal(output, new CSharpNamer <string>(s => s, new CSharpUtilities(), fakePluralizer.Pluralize).GetName(input));
        }