Exemple #1
0
        public void GenerateWordsTest()
        {
            var textGeneratorService = new LipsumGeneratorService();
            var words = textGeneratorService.GenerateWords(5);

            Assert.AreEqual(5, words.Length);
        }
Exemple #2
0
        public void GenerateSentencesTest()
        {
            var textGeneratorService = new LipsumGeneratorService();
            var words = textGeneratorService.GenerateSentences(2);

            Assert.AreEqual(2, words.Length);
        }
Exemple #3
0
        public void FirstGenerateCharactersAreNotNewLineOrReturnTest()
        {
            var textGeneratorService = new LipsumGeneratorService();
            var words      = textGeneratorService.GenerateCharacters(3);
            var characters = words[0];

            Assert.That(characters[0], Is.Not.EqualTo('\n').And.Not.EqualTo('\r'));
            Assert.That(characters[1], Is.Not.EqualTo('\n').And.Not.EqualTo('\r'));
            Assert.That(characters[2], Is.Not.EqualTo('\n').And.Not.EqualTo('\r'));
        }