public void Init() { MockTextEditorProperties textEditorProperties = new MockTextEditorProperties(); textEditorProperties.IndentStyle = IndentStyle.Smart; textEditorProperties.TabIndent = 4; textEditor = new TextEditorControl(); textEditor.TextEditorProperties = textEditorProperties; formattingStrategy = new RubyFormattingStrategy(); }
void CreateFormattingStrategy() { MockTextEditorOptions textEditorOptions = new MockTextEditorOptions(); textEditorOptions.IndentationSize = 4; textEditor = new TextEditor(); textEditor.Options = textEditorOptions; textEditorAdapter = new AvalonEditTextEditorAdapter(textEditor); formattingStrategy = new RubyFormattingStrategy(); }