|  | 
| 12 | 12 | using Rubberduck.VBEditor.Extensions; | 
| 13 | 13 | using Rubberduck.VBEditor.VBEHost; | 
| 14 | 14 | using Rubberduck.VBEditor.VBEInterfaces.RubberduckCodePane; | 
| 15 |  | -using RubberduckTests.Inspections; | 
| 16 | 15 | using RubberduckTests.Mocks; | 
| 17 | 16 | 
 | 
| 18 | 17 | namespace RubberduckTests.Refactoring | 
| @@ -63,59 +62,59 @@ Dim bar As Boolean | 
| 63 | 62 |             Assert.AreEqual(expectedCode, module.Lines()); | 
| 64 | 63 |         } | 
| 65 | 64 | 
 | 
| 66 |  | -        [TestMethod] | 
| 67 |  | -        public void MoveCloserToUsageRefactoring_FieldInOtherClass() | 
| 68 |  | -        { | 
| 69 |  | -            //Input | 
| 70 |  | -            const string inputCode1 = | 
| 71 |  | -@"Public bar As Boolean"; | 
| 72 |  | - | 
| 73 |  | -            const string inputCode2 = | 
| 74 |  | -@"Private Sub Foo() | 
| 75 |  | -    Module1.bar = True | 
| 76 |  | -End Sub"; | 
| 77 |  | -            var selection = new Selection(1, 1, 1, 1); | 
| 78 |  | - | 
| 79 |  | -            //Expectation | 
| 80 |  | -            const string expectedCode1 = | 
| 81 |  | -@"";  | 
|  | 65 | +//        [TestMethod] | 
|  | 66 | +//        public void MoveCloserToUsageRefactoring_FieldInOtherClass() | 
|  | 67 | +//        { | 
|  | 68 | +//            //Input | 
|  | 69 | +//            const string inputCode1 = | 
|  | 70 | +//@"Public bar As Boolean"; | 
|  | 71 | + | 
|  | 72 | +//            const string inputCode2 = | 
|  | 73 | +//@"Private Sub Foo() | 
|  | 74 | +//    Module1.bar = True | 
|  | 75 | +//End Sub"; | 
|  | 76 | +//            var selection = new Selection(1, 1, 1, 1); | 
|  | 77 | + | 
|  | 78 | +//            //Expectation | 
|  | 79 | +//            const string expectedCode1 = | 
|  | 80 | +//@"";  | 
| 82 | 81 | 
 | 
| 83 |  | -            const string expectedCode2 = | 
| 84 |  | -@"Private Sub Foo() | 
| 85 |  | -
 | 
| 86 |  | -    Dim bar As Boolean | 
| 87 |  | -    bar = True | 
| 88 |  | -End Sub"; | 
| 89 |  | - | 
| 90 |  | -            //Arrange | 
| 91 |  | -            var builder = new MockVbeBuilder(); | 
| 92 |  | -            var project = builder.ProjectBuilder("TestProject1", vbext_ProjectProtection.vbext_pp_none) | 
| 93 |  | -                .AddComponent("Module1", vbext_ComponentType.vbext_ct_StdModule, inputCode1) | 
| 94 |  | -                .AddComponent("Class1", vbext_ComponentType.vbext_ct_ClassModule, inputCode2) | 
| 95 |  | -                .Build(); | 
| 96 |  | -            var vbe = builder.AddProject(project).Build(); | 
| 97 |  | -            var component = project.Object.VBComponents.Item(0); | 
| 98 |  | - | 
| 99 |  | -            var codePaneFactory = new CodePaneWrapperFactory(); | 
| 100 |  | -            var mockHost = new Mock<IHostApplication>(); | 
| 101 |  | -            mockHost.SetupAllProperties(); | 
| 102 |  | -            var parser = MockParser.Create(vbe.Object, new RubberduckParserState()); | 
| 103 |  | - | 
| 104 |  | -            parser.Parse(); | 
| 105 |  | -            if (parser.State.Status == ParserState.Error) { Assert.Inconclusive("Parser Error"); } | 
| 106 |  | - | 
| 107 |  | -            var qualifiedSelection = new QualifiedSelection(new QualifiedModuleName(component), selection); | 
| 108 |  | -            var module1 = project.Object.VBComponents.Item(0).CodeModule; | 
| 109 |  | -            var module2 = project.Object.VBComponents.Item(1).CodeModule; | 
|  | 82 | +//            const string expectedCode2 = | 
|  | 83 | +//@"Private Sub Foo() | 
|  | 84 | +// | 
|  | 85 | +//    Dim bar As Boolean | 
|  | 86 | +//    bar = True | 
|  | 87 | +//End Sub"; | 
|  | 88 | + | 
|  | 89 | +//            //Arrange | 
|  | 90 | +//            var builder = new MockVbeBuilder(); | 
|  | 91 | +//            var project = builder.ProjectBuilder("TestProject1", vbext_ProjectProtection.vbext_pp_none) | 
|  | 92 | +//                .AddComponent("Module1", vbext_ComponentType.vbext_ct_StdModule, inputCode1) | 
|  | 93 | +//                .AddComponent("Class1", vbext_ComponentType.vbext_ct_ClassModule, inputCode2) | 
|  | 94 | +//                .Build(); | 
|  | 95 | +//            var vbe = builder.AddProject(project).Build(); | 
|  | 96 | +//            var component = project.Object.VBComponents.Item(0); | 
|  | 97 | + | 
|  | 98 | +//            var codePaneFactory = new CodePaneWrapperFactory(); | 
|  | 99 | +//            var mockHost = new Mock<IHostApplication>(); | 
|  | 100 | +//            mockHost.SetupAllProperties(); | 
|  | 101 | +//            var parser = MockParser.Create(vbe.Object, new RubberduckParserState()); | 
|  | 102 | + | 
|  | 103 | +//            parser.Parse(); | 
|  | 104 | +//            if (parser.State.Status == ParserState.Error) { Assert.Inconclusive("Parser Error"); } | 
|  | 105 | + | 
|  | 106 | +//            var qualifiedSelection = new QualifiedSelection(new QualifiedModuleName(component), selection); | 
|  | 107 | +//            var module1 = project.Object.VBComponents.Item(0).CodeModule; | 
|  | 108 | +//            var module2 = project.Object.VBComponents.Item(1).CodeModule; | 
| 110 | 109 | 
 | 
| 111 |  | -            //Act | 
| 112 |  | -            var refactoring = new MoveCloserToUsageRefactoring(parser.State, new ActiveCodePaneEditor(vbe.Object, codePaneFactory), null); | 
| 113 |  | -            refactoring.Refactor(qualifiedSelection); | 
| 114 |  | - | 
| 115 |  | -            //Assert | 
| 116 |  | -            Assert.AreEqual(expectedCode1, module1.Lines()); | 
| 117 |  | -            Assert.AreEqual(expectedCode2, module2.Lines()); | 
| 118 |  | -        } | 
|  | 110 | +//            //Act | 
|  | 111 | +//            var refactoring = new MoveCloserToUsageRefactoring(parser.State, new ActiveCodePaneEditor(vbe.Object, codePaneFactory), null); | 
|  | 112 | +//            refactoring.Refactor(qualifiedSelection); | 
|  | 113 | + | 
|  | 114 | +//            //Assert | 
|  | 115 | +//            Assert.AreEqual(expectedCode1, module1.Lines()); | 
|  | 116 | +//            Assert.AreEqual(expectedCode2, module2.Lines()); | 
|  | 117 | +//        } | 
| 119 | 118 | 
 | 
| 120 | 119 |         [TestMethod] | 
| 121 | 120 |         public void MoveCloserToUsageRefactoring_Variable() | 
|  | 
0 commit comments