Example #1
0
        public void CheckValueInArray_CheckArrayToContainSearchTerm_True()
        {
            WordToSearch newSearch = new WordToSearch("cat", "the bat cat the hat");

            string[] searchArray = newSearch.MakeSearchTermArray(newSearch.SearchTerm);
            string[] stringArray = newSearch.MakeSentenceArray(newSearch.PhraseToSearch);
            Assert.AreEqual(2, newSearch.DoesItContain(searchArray, stringArray));
        }
Example #2
0
        public void CheckValueInArray_InputArrayLength_5()
        {
            WordToSearch newSearch = new WordToSearch("cat", "the cat in the hat");

            Assert.AreEqual(5, newSearch.MakeSentenceArray(newSearch.PhraseToSearch).Length);
        }