~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/Newtonsoft.Json/Src/Newtonsoft.Json.Tests/Utilities/StringUtilsTests.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using System.Linq;
 
4
using System.Text;
 
5
using NUnit.Framework;
 
6
using Newtonsoft.Json.Utilities;
 
7
 
 
8
namespace Newtonsoft.Json.Tests.Utilities
 
9
{
 
10
  [TestFixture]
 
11
  public class StringUtilsTests : TestFixtureBase
 
12
  {
 
13
    [Test]
 
14
    public void ToCamelCaseTest()
 
15
    {
 
16
      Assert.AreEqual("urlValue", StringUtils.ToCamelCase("URLValue"));
 
17
      Assert.AreEqual("url", StringUtils.ToCamelCase("URL"));
 
18
      Assert.AreEqual("id", StringUtils.ToCamelCase("ID"));
 
19
      Assert.AreEqual("i", StringUtils.ToCamelCase("I"));
 
20
      Assert.AreEqual("", StringUtils.ToCamelCase(""));
 
21
      Assert.AreEqual(null, StringUtils.ToCamelCase(null));
 
22
      Assert.AreEqual("iPhone", StringUtils.ToCamelCase("iPhone"));
 
23
      Assert.AreEqual("person", StringUtils.ToCamelCase("Person"));
 
24
      Assert.AreEqual("iPhone", StringUtils.ToCamelCase("IPhone"));
 
25
      Assert.AreEqual("i Phone", StringUtils.ToCamelCase("I Phone"));
 
26
      Assert.AreEqual(" IPhone", StringUtils.ToCamelCase(" IPhone"));
 
27
    }
 
28
  }
 
29
}
 
 
b'\\ No newline at end of file'