예제 #1
0
        public void GetWordsTest()
        {
            int expected = 3;

            string[] actual;
            actual = Lorem.GetWords();
            Assert.AreEqual <int>(expected, actual.Length);
        }
예제 #2
0
        public void GetWordsTest1()
        {
            int wordCount = 5;
            int expected  = 5;

            string[] actual;
            actual = Lorem.GetWords(wordCount);
            Assert.AreEqual <int>(expected, actual.Length);
        }
예제 #3
0
 public void Words_Is_A_Non_Null_String()
 {
     Assert.IsTrue(Regex.IsMatch(Lorem.GetWords().Join(" "), @"[ a-z]+"));
 }
예제 #4
0
 public void TestWords()
 {
     Regex.IsMatch(Lorem.GetWords().Join(" "), @"[ a-z]+").ShouldBeTrue();
 }
예제 #5
0
 public void TestWords()
 {
     Assert.IsTrue(Regex.IsMatch(Lorem.GetWords().Join(" "), @"[ a-z]+"));
 }