Exemple #1
0
        public void DefaultDullWordsEliminator_SkipsPrepositions()
        {
            var words = new string[] { "at", "by", "on", "in", "with" };

            var eliminator = new DefaultDullWordsEliminator();

            foreach (var word in words)
            {
                eliminator.IsDull(word).Should().BeTrue();
            }
        }
Exemple #2
0
        public void DefaultDullWordsEliminator_DoesNotSkipVerbsAndNouns()
        {
            var words = new string[] { "Man", "stopped", "running", "marathon" };

            var eliminator = new DefaultDullWordsEliminator();

            foreach (var word in words)
            {
                eliminator.IsDull(word).Should().BeFalse();
            }
        }
Exemple #3
0
        public void DefaultDullWordsEliminator_SkipsPronouns()
        {
            var words = new string[] { "I", "he", "she", "they", "we",
                                       "me", "her", "his", "them", "us" };

            var eliminator = new DefaultDullWordsEliminator();

            foreach (var word in words)
            {
                eliminator.IsDull(word).Should().BeTrue();
            }
        }