示例#1
0
        public void LetterIsLetter_RemoveNonAlphabet()
        {
            WordCountGen newComparison = new WordCountGen();

            Assert.AreEqual(true, newComparison.RemoveNonAlphabet('c'));
        }
示例#2
0
        public void IsWord_IsAWord_True()
        {
            WordCountGen newWord = new WordCountGen();

            Assert.AreEqual(true, newWord.IsWord("test"));
        }
示例#3
0
        public void WordInSentence_RepeatCounter()
        {
            WordCountGen newComparison = new WordCountGen();

            Assert.AreEqual(2, newComparison.RepeatCounter("cat"));
        }
示例#4
0
        public void SentenceContainsWord_UserSentenceContainsUserWord_True()
        {
            WordCountGen newComparison = new WordCountGen();

            Assert.AreEqual(true, newComparison.SentenceContainsWord());
        }
示例#5
0
        public void SentenceToArray_UserSentenceToArray_True()
        {
            WordCountGen newArray = new WordCountGen();

            Assert.AreEqual(true, newArray.SentenceToArray("the cat in the hat"));
        }
示例#6
0
        public void WordToLowerCase_TurnWordToLowerCase()
        {
            WordCountGen newSentence = new WordCountGen();

            Assert.AreEqual("the cat in the hat", newSentence.SentenceToLowerCase("The CAT in the Hat"));
        }
示例#7
0
        public void IsSentence_IsASentence_True()
        {
            WordCountGen newSentence = new WordCountGen();

            Assert.AreEqual(true, newSentence.IsSentence("the cat in the hat"));
        }