mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Method for converting string to title case
This commit is contained in:
parent
9e33bffe0c
commit
6dedd0bde6
2 changed files with 19 additions and 0 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue