public void KebabWithTwoLetterAcronymToCamelCase()
        {
            var    switcher = new NamingConventionSwitcher(new KebabCaseConvention(), new CamelCaseConvention(new [] { "UI" }));
            string switched = switcher.ConvertCodedToDefault("what-about-ui-acronym");

            Assert.Equal("whatAboutUIAcronym", switched);
        }
        public void AllAllowedCases()
        {
            var switcher = new NamingConventionSwitcher(new PascalCaseConvention(null), new SnakeCaseConvention(), new List <ICaseConvention>()
            {
                new PascalCaseConvention(null),
                new SnakeCaseConvention(),
                new CamelCaseConvention(null),
                new KebabCaseConvention()
            });

            string switched1 = switcher.ConvertRequestedToOutput("OriginallyPascalCase");

            Assert.Equal("originally_pascal_case", switched1);

            string switched2 = switcher.ConvertRequestedToOutput("originallyCamelCase");

            Assert.Equal("originally_camel_case", switched2);

            string switched3 = switcher.ConvertRequestedToOutput("originally_snake_case");

            Assert.Equal("originally_snake_case", switched3);

            string switched4 = switcher.ConvertRequestedToOutput("originally-kebab-case");

            Assert.Equal("originally_kebab_case", switched4);
        }
        public void KebabToCamelCase()
        {
            var    switcher = new NamingConventionSwitcher(new KebabCaseConvention(), new CamelCaseConvention(null));
            string switched = switcher.ConvertCodedToDefault("kebab-case-makes-me-laugh");

            Assert.Equal("kebabCaseMakesMeLaugh", switched);
        }
        public void CamelToKebabCase()
        {
            var    switcher = new NamingConventionSwitcher(new CamelCaseConvention(null), new KebabCaseConvention());
            string switched = switcher.ConvertCodedToDefault("camelCaseThingHere");

            Assert.Equal("camel-case-thing-here", switched);
        }
        public void SnakeToPascalCase()
        {
            var    switcher = new NamingConventionSwitcher(new SnakeCaseConvention(), new PascalCaseConvention(null));
            string switched = switcher.ConvertCodedToDefault("snake_case_start_yeah");

            Assert.Equal("SnakeCaseStartYeah", switched);
        }
        public void PascalToSnakeCaseWithAcronym()
        {
            var    switcher = new NamingConventionSwitcher(new PascalCaseConvention(null), new SnakeCaseConvention());
            string switched = switcher.ConvertCodedToDefault("WhatAboutHTTPListener");

            Assert.Equal("what_about_http_listener", switched);
        }
        public void PascalToSnakeCase()
        {
            var    switcher = new NamingConventionSwitcher(new PascalCaseConvention(null), new SnakeCaseConvention());
            string switched = switcher.ConvertCodedToDefault("ThisIsPascalCase");

            Assert.Equal("this_is_pascal_case", switched);
        }