public void Init()
        {
            string xml   = "<abc></abc>";
            int    index = 2;

            MockTextEditor textEditor = new MockTextEditor();

            textEditor.Document.Text = xml;
            textEditor.Caret.Offset  = index;

            selectedElement = new SelectedXmlElement(textEditor);
        }
        public void Init()
        {
            string xml   = "<parent a='attributeValue'></parent>";
            int    index = 15;

            MockTextEditor textEditor = new MockTextEditor();

            textEditor.Document.Text = xml;
            textEditor.Caret.Offset  = index;

            selectedElement = new SelectedXmlElement(textEditor);
        }
Ejemplo n.º 3
0
        public void Init()
        {
            string xml   = "<root attribute1=''></root>";
            int    index = 10;

            MockTextEditor textEditor = new MockTextEditor();

            textEditor.Document.Text = xml;
            textEditor.Caret.Offset  = index;

            selectedElement = new SelectedXmlElement(textEditor);
        }
 void FindSelectedElement(string xml, int index)
 {
     selectedElement = new SelectedXmlElement(xml, index);
 }