Ejemplo n.º 1
0
 public void RegisterGenerator()
 {
     Utilities.Random.Random Rand = new Utilities.Random.Random();
     Rand.RegisterGenerator <string>(new NameGenerator());
     Assert.True(100.Times(x => Rand.Next <string>()).All(x => x.Split(' ').Length == 2));
 }
 public void RegisterGenerator()
 {
     Utilities.Random.Random Rand = new Utilities.Random.Random();
     Assert.DoesNotThrow<Exception>(() => Rand.RegisterGenerator<string>(new NameGenerator()));
     Assert.True(100.Times(x => Rand.Next<string>()).TrueForAll(x => x.Split(' ').Length == 2));
 }
 public void RegisterGenerator()
 {
     Utilities.Random.Random Rand = new Utilities.Random.Random();
     Rand.RegisterGenerator<string>(new NameGenerator());
     Assert.True(100.Times(x => Rand.Next<string>()).All(x => x.Split(' ').Length == 2));
 }