コード例 #1
0
        public void LastNameGeneratorTest()
        {
            IGenerator <string> lng = new LastNameGenerator();
            var lastname            = (string)lng.Generate();

            Assert.IsNotNull(lastname);
        }
コード例 #2
0
        public void Last_Name_Generator()
        {
            ILastNameGenerator lnamegenerator    = new LastNameGenerator();
            string             generatedlastname = lnamegenerator.Generate(random);

            Assert.IsNotNull(generatedlastname);
        }
コード例 #3
0
        public void LastNameGeneratorWithStringOverride()
        {
            ILastNameGenerator lnamegenerator    = new LastNameGenerator();
            string             generatedlastname = lnamegenerator.Generate(random, "Smith");

            Assert.IsNotNull(generatedlastname);
            Assert.AreEqual("Smith", generatedlastname);
        }
コード例 #4
0
        public void LastNameGeneratorAttributeMap()
        {
            ILastNameGenerator lnamegenerator = new LastNameGenerator();
            AttributeMap       attmap         = new AttributeMap {
                GeneratorDefaultValue = "Smith"
            };
            string generatedlastname = lnamegenerator.Generate(random, attmap);

            Assert.IsNotNull(generatedlastname);
            Assert.AreEqual("Smith", generatedlastname);
        }
コード例 #5
0
 public void Last_Name_Generator()
 {
     ILastNameGenerator lnamegenerator = new LastNameGenerator();
     string generatedlastname = lnamegenerator.Generate(random);
     Assert.IsNotNull(generatedlastname);
 }
コード例 #6
0
 public void LastNameGeneratorWithStringOverride()
 {
     ILastNameGenerator lnamegenerator = new LastNameGenerator();
     string generatedlastname = lnamegenerator.Generate(random, "Smith");
     Assert.IsNotNull(generatedlastname);
     Assert.AreEqual("Smith", generatedlastname);
 }
コード例 #7
0
 public void LastNameGeneratorAttributeMap()
 {
     ILastNameGenerator lnamegenerator = new LastNameGenerator();
     AttributeMap attmap = new AttributeMap { GeneratorDefaultValue = "Smith" };
     string generatedlastname = lnamegenerator.Generate(random, attmap);
     Assert.IsNotNull(generatedlastname);
     Assert.AreEqual("Smith", generatedlastname);
 }
コード例 #8
0
 public void LastNameGeneratorTest()
 {
     IGenerator<string> lng = new LastNameGenerator();
     var lastname = (string) lng.Generate();
     Assert.IsNotNull(lastname);
 }