Пример #1
0
        public void Init()
        {
            MockTextEditorProperties textEditorProperties = new MockTextEditorProperties();

            textEditorProperties.IndentStyle = IndentStyle.Smart;
            textEditorProperties.TabIndent   = 4;
            textEditor = new TextEditorControl();
            textEditor.TextEditorProperties = textEditorProperties;
            formattingStrategy = new RubyFormattingStrategy();
        }
Пример #2
0
        void CreateFormattingStrategy()
        {
            MockTextEditorOptions textEditorOptions = new MockTextEditorOptions();

            textEditorOptions.IndentationSize = 4;
            textEditor         = new TextEditor();
            textEditor.Options = textEditorOptions;

            textEditorAdapter = new AvalonEditTextEditorAdapter(textEditor);

            formattingStrategy = new RubyFormattingStrategy();
        }