public void TestToProperCaseWithPossessiveS() { Assert.AreEqual("John's House", CaseConverter.ToProperCase("john's house")); }
public void TestToProperCaseWithMixedCase() { Assert.AreEqual("My Title", CaseConverter.ToProperCase("mY tItLe")); }
public void TestToProperCaseWithRomanNumeralsInsideOfWord() { Assert.AreEqual("The Liver Is An Organ", CaseConverter.ToProperCase("the liver is an organ", CasingOptions.CapitalizeRomanNumerals)); }
public void TestToProperCaseWithRomanNumerals() { Assert.AreEqual("James III Of Scotland", CaseConverter.ToProperCase("james iii of scotland", CasingOptions.CapitalizeRomanNumerals)); }
public void TestToProperCaseWithUpperCaseAndPreserveAcronymsOption() { Assert.AreEqual("MY TITLE", CaseConverter.ToProperCase("MY TITLE", CasingOptions.PreserveAcronyms)); }
public void TestToProperCaseWithUpperCase() { Assert.AreEqual("My Title", CaseConverter.ToProperCase("MY TITLE")); }
public static string ToProper(this string input, CasingOptions options = CasingOptions.Default) { return(CaseConverter.ToProperCase(input, options)); }