public void LastNameGeneratorTest() { IGenerator <string> lng = new LastNameGenerator(); var lastname = (string)lng.Generate(); Assert.IsNotNull(lastname); }
public void Last_Name_Generator() { ILastNameGenerator lnamegenerator = new LastNameGenerator(); string generatedlastname = lnamegenerator.Generate(random); Assert.IsNotNull(generatedlastname); }
public void LastNameGeneratorWithStringOverride() { ILastNameGenerator lnamegenerator = new LastNameGenerator(); string generatedlastname = lnamegenerator.Generate(random, "Smith"); Assert.IsNotNull(generatedlastname); Assert.AreEqual("Smith", generatedlastname); }
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); }
public void LastNameGeneratorTest() { IGenerator<string> lng = new LastNameGenerator(); var lastname = (string) lng.Generate(); Assert.IsNotNull(lastname); }