public void GenerateName() { EntityNamer namer = new EntityNamer((IList)structure.Elements, "Element"); Assert.AreEqual(namer.GenerateName(), "Element Untitled 2"); Element element = new Element(structure); element.Name = "Element Untitled 2"; Element element2 = new Element(structure); element2.Name = "Element Untitled 4"; Assert.AreEqual(namer.GenerateName(), "Element Untitled 5"); }
public virtual string GetNewExpectedResultName() { EntityNamer namer = new EntityNamer((IList)ExpectedResults, "Value"); return(namer.GenerateName()); }