public void Create_Application() { var helper = new SchemaHelper(); DictionaryNode node=helper.CreateElement(ModelElement.Application); var dictionaryNode = new DictionaryNode("Element"); dictionaryNode.SetAttribute("Name", ModelElement.Application.ToString()); Assert.AreEqual(dictionaryNode.ToXml(), node.ToXml()); }
public void Create_Class() { var helper = new SchemaHelper(); DictionaryNode node=helper.CreateElement(ModelElement.Class); var dictionaryNode = new DictionaryNode("Element"); dictionaryNode.SetAttribute("Name", ModelElement.Application.ToString()); var childNode = dictionaryNode.AddChildNode("Element"); childNode.SetAttribute("Name", ModelElement.BOModel.ToString()); childNode.AddChildNode("Element").SetAttribute("Name", ModelElement.Class.ToString()); Assert.AreEqual(dictionaryNode.ToXml(), node.ToXml()); }