Esempio n. 1
0
        public void Next_Returns_A_Paragragh()
        {
            LoremIpsumSource source = new LoremIpsumSource();
            var value = source.Next(null);

            Assert.That(value, Is.Not.Null.And.Not.Empty);
        }
Esempio n. 2
0
        public void Next_Returns_A_Paragragh()
        {
            LoremIpsumSource source = new LoremIpsumSource();
            var value = source.Next(null);

            Assert.IsNotNullOrEmpty(value);
        }
        public void NextValueLong()
        {
            var source = new LoremIpsumSource(1000);

            var nextValue = source.NextValue(null);

            _output.WriteLine($"Text:\r\n{nextValue}\r\n\r\n");
        }
Esempio n. 4
0
        public void Next_Returns_Two_Paragragh()
        {
            LoremIpsumSource source = new LoremIpsumSource();
            LoremIpsumSource source2 = new LoremIpsumSource(2);

            var value = source.Next(null);
            var value2 = source2.Next(null);
            Assert.IsTrue(value2.Length > value.Length);
        }
        public void NextValue()
        {
            var source = new LoremIpsumSource();

            for (int i = 0; i < 10; i++)
            {
                var nextValue = source.NextValue(null);
                _output.WriteLine($"Value {i}:\r\n{nextValue}\r\n\r\n");
            }
        }
Esempio n. 6
0
        public void Next_Returns_Two_Paragragh()
        {
            LoremIpsumSource source  = new LoremIpsumSource();
            LoremIpsumSource source2 = new LoremIpsumSource(2);

            var value  = source.Next(null);
            var value2 = source2.Next(null);

            Assert.IsTrue(value2.Length > value.Length);
        }
Esempio n. 7
0
        private static FilesGenerator CreateGenerator(ILoggerFactory loggerFactory)
        {
            var settings = new SentenceSourceSettings {
                MaxWordsNumber = 5, SentencesPoolSize = 100
            };

            var wordsSource     = new LoremIpsumSource();
            var sentencesSource = new DefaultSentencesSource(wordsSource, settings);

            return(new FilesGenerator(sentencesSource, loggerFactory));
        }
Esempio n. 8
0
 public void Next_Returns_A_Paragragh()
 {
     LoremIpsumSource source = new LoremIpsumSource();
     var value = source.Next(null);
     Assert.IsNotNullOrEmpty(value);
 }