public void ConvertToIdentifier_ShouldPerformAsExpected(string input, string expected, bool keepLeadingUnderscores = false, string userscoreReplaceString = "")
        {
            var sut = new StandardTypeNameGenerator(string.Empty, keepLeadingUnderscores, userscoreReplaceString);

            sut.ConvertToIdentifier(input).Should().Be(expected);
        }
Exemple #2
0
        public void ConvertToIdentifier_ShouldPerformAsExpected(string input, string expected)
        {
            var sut = new StandardTypeNameGenerator(string.Empty);

            sut.ConvertToIdentifier(input).Should().Be(expected);
        }
        public void GetFullTypeName_ShouldPerformAsExpected(string rootNamespace, string fullPath, string expected, bool keepLeadingUnderscores = false, string userscoreReplaceString = "")
        {
            var sut = new StandardTypeNameGenerator(rootNamespace, keepLeadingUnderscores, userscoreReplaceString);

            sut.GetFullTypeName(fullPath).Should().Be(expected);
        }
Exemple #4
0
        public void GetFullTypeName_ShouldPerformAsExpected(string rootNamespace, string fullPath, string expected)
        {
            var sut = new StandardTypeNameGenerator(rootNamespace);

            sut.GetFullTypeName(fullPath).Should().Be(expected);
        }