예제 #1
0
 public void TestIsPointlessChatterUppercase()
 {
     foreach (var phrase in PointlessChatterGenerator.PointlessPhrases)
     {
         Assert.IsTrue(PointlessChatterGenerator.IsPointlessChatter(phrase.ToUpper()));
     }
 }
예제 #2
0
 public void TestIsPointlessChatterStartingLongerSentence()
 {
     foreach (var phrase in PointlessChatterGenerator.PointlessPhrases)
     {
         Assert.IsTrue(PointlessChatterGenerator.IsPointlessChatter(phrase + ", how are you?"));
     }
 }
예제 #3
0
 public void TestIsPointlessChatterTrailingPunctuation()
 {
     foreach (var phrase in PointlessChatterGenerator.PointlessPhrases)
     {
         Assert.IsTrue(PointlessChatterGenerator.IsPointlessChatter(phrase + "!"));
     }
 }
예제 #4
0
        public void TestIsPointlessChatterSimple()
        {
            foreach (var phrase in PointlessChatterGenerator.PointlessPhrases)
            {
                Assert.IsTrue(PointlessChatterGenerator.IsPointlessChatter(phrase));
            }

            Assert.IsFalse(PointlessChatterGenerator.IsPointlessChatter("doo bee doo bee doo"));
            Assert.IsFalse(PointlessChatterGenerator.IsPointlessChatter("highrise"));
        }