Migrated member unit tests to new unit test project using builder pattern.

This commit is contained in:
Andy Butland
2020-03-29 16:17:06 +02:00
parent 50631c2b28
commit dface90de7
24 changed files with 998 additions and 183 deletions

View File

@@ -0,0 +1,20 @@
namespace Umbraco.Tests.Common.Builders.Extensions
{
public static class StringExtensions
{
public static string ToCamelCase(this string s)
{
if (string.IsNullOrWhiteSpace(s))
{
return string.Empty;
}
if (s.Length == 1)
{
return s.ToLowerInvariant();
}
return char.ToLowerInvariant(s[0]) + s.Substring(1);
}
}
}