public void TestWords_NumWordsMatchesText_ReturnsNumWords() { RCTracker trackerTest = new RCTracker(); RCScanner scannerTest = new RCScanner(); trackerTest.NumWords = scannerTest.CountWords(txtMainTest); Assert.AreEqual(trackerTest.NumWords, 9, "Number of words reported: {0}. Expected value: 9", trackerTest.NumWords); }
public void TestSyllables_NumSyllables_ReturnSyllables() { RCTracker trackerTest = new RCTracker(); RCScanner scannerTest = new RCScanner(); trackerTest.NumSyllables = scannerTest.CountSyllables(txtMainTest); Assert.AreEqual(trackerTest.NumSyllables, 10, "Number of syllables reported: {0}. Expected value: 10", trackerTest.NumSyllables); }
public void CountSentences_NumSentencesMatchesText_ReturnsNumSentences() { var trackerTest = new RCTracker(); var scannerTest = new RCScanner(); trackerTest.NumSentences = scannerTest.CountSentences(txtMainTest); Assert.AreEqual(trackerTest.NumSentences, 1, "Number of sentences reported: {0}. Expected value: 1", trackerTest.NumSentences); }