Method for converting string to title case

This commit is contained in:
Chris Cameron
2018-02-05 10:21:24 -05:00
parent 9e33bffe0c
commit 6dedd0bde6
2 changed files with 19 additions and 0 deletions

View File

@@ -67,6 +67,13 @@ namespace ICD.Common.Utils.Tests
Assert.AreEqual("Foobar", StringUtils.UppercaseFirst("foobar"));
}
[TestCase("test", "Test")]
[TestCase("test test", "Test Test")]
public static void ToTitleCase(string input, string expected)
{
Assert.AreEqual(expected, StringUtils.ToTitleCase(input));
}
[Test, UsedImplicitly]
public void ToIpIdStringTest()
{