public void TestFakerFillIn() { string pattern = "@{Name.GetFirstName}"; RandomFactory random = new RandomFactory(null, LocaleType.en); List <string> names = new List <string>(); En en = new En(); foreach (var n in en.FirstName) { names.Add(n); } //foreach (var n in en.MaleFirstName) names.Add(n); //foreach (var n in en.FemaleFirstName) names.Add(n); for (int i = 0; i < 100000; i++) { var result = random.FillInRandomDataFromMethod(pattern); Assert.IsTrue(names.Contains(result)); } }