コード例 #1
0
        [TestCase("WhoIsNumber6InTheVillage", "Who Is Number6In The Village")] // we're happy to reproduce the issue
        public void CompatibleLegacyReplacement(string input, string expected)
        {
            var helper = new LegacyShortStringHelper();
            var output = input.Length < 2 ? input : helper.SplitPascalCasing(input, ' ').ToFirstUpperInvariant();

            Assert.AreEqual(expected, output);
        }
コード例 #2
0
 public void SplitPascalCasing(string input, string expected)
 {
     // NOTE legacy SplitPascalCasing has issues w/some cases
     // -> ignore test cases
     var output = _helper.SplitPascalCasing(input, ' ');
     Assert.AreEqual(expected, output);
 }