public void UniqueNamerTest()
    {
      var namer = new UniqueNamer();
      Assert.IsNotNull(namer);

      string result;

      result = namer.UniqueName("Tester", "Users");
      Assert.AreEqual("Users", result);

      result = namer.UniqueName("Tester", "Users");
      Assert.AreEqual("Users1", result);

      result = namer.UniqueName("Tester", "Users");
      Assert.AreEqual("Users2", result);

    }
Ejemplo n.º 2
0
 public Generator()
 {
     _settings = new GeneratorSettings();
     _namer = new UniqueNamer();
 }
 public Generator()
 {
     _settings = new GeneratorSettings();
     _namer    = new UniqueNamer();
 }