Beispiel #1
0
        public void SetUpFixture()
        {
            mockViewContent      = new MockEditableViewContent();
            mockViewContent.Text =
                "class Foo\r\n" +
                "{\r\n" +
                "    public Foo()\r\n" +
                "    {\r\n" +
                "    }\r\n" +
                "}";

            mockViewContent.PrimaryFileName = "test.cs";

            MockWorkbench       workbench = new MockWorkbench();
            MockWorkbenchWindow window    = new MockWorkbenchWindow();

            window.ActiveViewContent        = mockViewContent;
            workbench.ActiveWorkbenchWindow = window;

            MockTextEditorProperties textEditorProperties = new MockTextEditorProperties();

            textEditorProperties.IndentationSize     = 4;
            textEditorProperties.ConvertTabsToSpaces = true;

            Run(workbench, textEditorProperties);
        }
        public void SetUpFixture()
        {
            mockViewContent      = new MockEditableViewContent();
            mockViewContent.Text =
                "class Foo\r\n" +
                "    Public Sub New\r\n" +
                "    End Sub\r\n" +
                "end class";
            mockViewContent.PrimaryFileName = "test.vb";

            MockWorkbench       workbench = new MockWorkbench();
            MockWorkbenchWindow window    = new MockWorkbenchWindow();

            window.ActiveViewContent        = mockViewContent;
            workbench.ActiveWorkbenchWindow = window;

            MockTextEditorProperties textEditorProperties = new MockTextEditorProperties();

            textEditorProperties.ConvertTabsToSpaces = false;
            textEditorProperties.IndentationSize     = 2;

            Run(workbench, textEditorProperties);
        }
Beispiel #3
0
 public void Init()
 {
     view = new MockEditableViewContent();
 }