Beispiel #1
0
        public void AmericanAddressGeneratorTest()
        {
            IGenerator <string> americanaddy = new AmericanAddressGenerator();
            var address = (string)americanaddy.Generate();

            Assert.IsNotNull(address);
        }
Beispiel #2
0
        public void AmericanAddressGenerator()
        {
            IAmericanAddressGenerator americanaddressgenerator = new AmericanAddressGenerator();
            string address = americanaddressgenerator.Generate(random);

            Assert.IsNotNull(address);
        }
 public void AmericanAddressGeneratorWithStringOverride()
 {
     IAmericanAddressGenerator americanaddressgenerator = new AmericanAddressGenerator();
     string address = americanaddressgenerator.Generate(random, "123 Main");
     Assert.IsNotNull(address);
     Assert.AreEqual("123 Main", address);
 }
Beispiel #4
0
        public void AmericanAddressGeneratorWithStringOverride()
        {
            IAmericanAddressGenerator americanaddressgenerator = new AmericanAddressGenerator();
            string address = americanaddressgenerator.Generate(random, "123 Main");

            Assert.IsNotNull(address);
            Assert.AreEqual("123 Main", address);
        }
 public void AmericanAddressGeneratorWithAttributeMap()
 {
     IAmericanAddressGenerator americanaddressgenerator = new AmericanAddressGenerator();
     AttributeMap attmap = new AttributeMap { GeneratorDefaultValue = "123 Main" };
     string address = americanaddressgenerator.Generate(random, attmap);
     Assert.IsNotNull(address);
     Assert.AreEqual("123 Main", address);
 }
Beispiel #6
0
        public void AmericanAddressGeneratorWithAttributeMap()
        {
            IAmericanAddressGenerator americanaddressgenerator = new AmericanAddressGenerator();
            AttributeMap attmap = new AttributeMap {
                GeneratorDefaultValue = "123 Main"
            };
            string address = americanaddressgenerator.Generate(random, attmap);

            Assert.IsNotNull(address);
            Assert.AreEqual("123 Main", address);
        }
 public void AmericanAddressGenerator()
 {
     IAmericanAddressGenerator americanaddressgenerator = new AmericanAddressGenerator();
     string address = americanaddressgenerator.Generate(random);
     Assert.IsNotNull(address);
 }
 public void AmericanAddressGeneratorTest()
 {
     IGenerator<string> americanaddy = new AmericanAddressGenerator();
     var address = (string) americanaddy.Generate();
     Assert.IsNotNull(address);
 }