コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }