public void StringToCapitalizedStringConverter_ToPascalCase() { foreach (var @case in testCases) { var res = new StringToCapitalizedStringConverter { Capitalization = StringCapitalization.ToPascalCase }.Convert(@case, CultureInfo.CurrentCulture); Assert.Equal("TestString", res); } }
public void StringToCapitalizedStringConverter_ToUpper() { foreach (var @case in testCases) { var res = new StringToCapitalizedStringConverter { Capitalization = StringCapitalization.ToUpper }.Convert(@case, CultureInfo.CurrentCulture); Assert.Equal("TEST STRING", res); } }