Example #1
0
        public void SplitWord_SplitWord_CharArray()
        {
            int    total = 0;
            string word  = "joe";

            // char[] expectedResult = word.ToCharArray();
            char[]      expectedResult = new char[] { 'j', 'o', 'e' };
            WordCounter newWordCounter = new WordCounter(total, word, "");

            CollectionAssert.AreEqual(expectedResult, newWordCounter.SplitWord());
        }