Updated StringUtils.ToCamelCase to fix an edge case. (#1467)
This commit is contained in:
committed by
James Newton-King
parent
4a74cf1b1a
commit
122afba990
@@ -64,6 +64,10 @@ namespace Newtonsoft.Json.Tests.Utilities
|
||||
Assert.AreEqual("shoutinG_CASE", StringUtils.ToCamelCase("SHOUTING_CASE"));
|
||||
Assert.AreEqual("9999-12-31T23:59:59.9999999Z", StringUtils.ToCamelCase("9999-12-31T23:59:59.9999999Z"));
|
||||
Assert.AreEqual("hi!! This is text. Time to test.", StringUtils.ToCamelCase("Hi!! This is text. Time to test."));
|
||||
Assert.AreEqual("building", StringUtils.ToCamelCase("BUILDING"));
|
||||
Assert.AreEqual("building Property", StringUtils.ToCamelCase("BUILDING Property"));
|
||||
Assert.AreEqual("building Property", StringUtils.ToCamelCase("Building Property"));
|
||||
Assert.AreEqual("building PROPERTY", StringUtils.ToCamelCase("BUILDING PROPERTY"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user