Example #1
0
        public void Test3()
        {
            string s = "";

            Assert.AreEqual(0, Str.CamelCase(s));
        }
Example #2
0
        public void Test4()
        {
            string s = null;

            Assert.AreEqual(0, Str.CamelCase(s));
        }
Example #3
0
        public void Test1()
        {
            string s = "aab";

            Assert.AreEqual(1, Str.CamelCase(s));
        }
Example #4
0
        public void Test2()
        {
            string s = "heyThere";

            Assert.AreEqual(2, Str.CamelCase(s));
        }
        public void camelCases(string my_string, int expected_words)
        {
            int result = Str.CamelCase(my_string);

            Assert.AreEqual(expected_words, result);
        }
Example #6
0
        public void Test6()
        {
            string s = "iAmHere";

            Assert.AreEqual(3, Str.CamelCase(s));
        }
Example #7
0
        public void Test4()
        {
            string s = "justanotherstring";

            Assert.AreEqual(1, Str.CamelCase(s));
        }
Example #8
0
        public void Test2()
        {
            string s = "hello";

            Assert.AreEqual(1, Str.CamelCase(s));
        }
Example #9
0
        public void Test1()
        {
            string s = "letsTest";

            Assert.AreEqual(2, Str.CamelCase(s));
        }