Ejemplo n.º 1
0
        public void MakeWords()
        {
            TextGenerator wc = new TextGenerator();
            List<string> wordsList = new List<string>(20);
            for (int i = 0; i < 20; i++)
            {
                wordsList.Add(wc.GenerateWord(6));
            }

            string words = string.Join(", ", wordsList);
        }
Ejemplo n.º 2
0
        public void MakeNames()
        {
            TextGenerator wc = new TextGenerator(WordTypes.Name);
            List<string> namesList = new List<string>(20);
            for (int i = 0; i < 20; i++)
            {
                namesList.Add(wc.GenerateWord(6));
            }

            string names = string.Join(", ", namesList);
        }
 public void WordCreator_ShouldMakeWords()
 {
     TextGenerator wc = new TextGenerator();
     wc.GenerateWord(6).Should().NotBeNullOrEmpty().And.HaveLength(6);
 }
 public void WordCreator_ShouldMakeNames()
 {
     TextGenerator wc = new TextGenerator(WordTypes.Name);
     for (int i = 0; i < 100; i++)
     {
         string name = wc.GenerateWord(6);
         name.Should().NotBeNullOrEmpty().And.HaveLength(6);
         name[0].Should().Be(char.ToUpper(name[0]));
     }
 }
 public void WordCreator_ShouldMakeLongWords()
 {
     TextGenerator wc = new TextGenerator();
     wc.GenerateWord(100).Should().NotBeNullOrEmpty();
     string s = wc.GenerateWord(100);
 }