public void Init() { formattingStrategy = new XmlFormattingStrategy(); options = new MockTextEditorOptions(); textEditor = new MockTextEditor(); textEditor.Options = options; textDocument = new TextDocument(); document = new AvalonEditDocumentAdapter(textDocument, null); textEditor.SetDocument(document); document.Text = "<root>\r\n" + "\t<child>\r\n" + "</child>\r\n" + "</root>\r\n"; docLine = new MockDocumentLine(); docLine.LineNumber = 3; formattingStrategy.IndentLine(textEditor, docLine); }
public void Init() { documentLine = new MockDocumentLine(); }