Ejemplo n.º 1
0
        public void GetWords()
        {
            const int WordLength = 9;

            string[] words = LoremIpsum.GetWords(WordLength);
            Assert.IsTrue(words.All(word => word.Length == WordLength));
        }
Ejemplo n.º 2
0
 public void NextHeading()
 {
     for (int wordCount = 1; wordCount <= 4; wordCount++)
     {
         string heading = LoremIpsum.NextHeading(minWordCount: wordCount, maxWordCount: wordCount);
         Assert.AreEqual(wordCount, heading.SplitIntoWords().Length);
     }
 }