public void StringCleaner_RemovesPunctuation_True() { // Arrange StringEval newStringEval = new StringEval("word", "this sentence uses a word, or two"); // Act Assert.AreEqual("this sentence uses a word or two", newStringEval.StringCleaner()); // Assert Assert.AreEqual(1, newStringEval.RepeatCounter()); }
public void RepeatCounter_TallySpecificWordInstances_Int() { // Arrange StringEval newStringEval = new StringEval("word", "this sentence uses a word thing or two"); // Act // Assert Assert.AreEqual(1, newStringEval.RepeatCounter()); }