Esempio n. 1
0
        public void GenerateCharactersTest()
        {
            var textGeneratorService = new LipsumGeneratorService();
            var words = textGeneratorService.GenerateCharacters(5);

            Assert.AreEqual(1, words.Length);
            Assert.AreEqual(5, words[0].Length);
        }
Esempio n. 2
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'));
        }