Exemple #1
0
        public void StringSplitWord_UserwordMatchesLongString_int()
        {
            WordMatchClass testString = new WordMatchClass();

            string userWord   = "dog";
            string userString = "the dog and doggies went into the dog house to find more doggies for the dog party";

            Assert.AreEqual(3, testString.StringSplitWord(userWord, userString));
        }
Exemple #2
0
        public void StringSplitWord_UserwordMatchesString_int()
        {
            WordMatchClass testString = new WordMatchClass();

            string userWord   = "dog";
            string userString = "dog dog";

            Assert.AreEqual(2, testString.StringSplitWord(userWord, userString));
        }
Exemple #3
0
        public void StringSplitWord_UserwordMatchesWord_Int()
        {
            WordMatchClass testString = new WordMatchClass();

            Assert.AreEqual(1, testString.StringSplitWord("a", "a"));
        }
Exemple #4
0
 public void Dispose()
 {
     WordMatchClass.ClearAll();
 }