File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
RubberduckTests/Refactoring Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 7
7
using Rubberduck . UI ;
8
8
using Rubberduck . VBEditor ;
9
9
using Rubberduck . VBEditor . SafeComWrappers ;
10
- using Rubberduck . VBEditor . SafeComWrappers . Abstract ;
11
10
using RubberduckTests . Mocks ;
12
11
13
12
namespace RubberduckTests . Refactoring
@@ -891,6 +890,18 @@ Dim foo As Object
891
890
892
891
using ( var state = MockParser . CreateAndParse ( vbe . Object ) )
893
892
{
893
+ // temp: get AppVeyor to spill its beans
894
+ var i = 0 ;
895
+ foreach ( var d in state . AllUserDeclarations )
896
+ {
897
+ TestContext . Out . WriteLine ( $ "({ i ++ } ): { d . QualifiedName . MemberName } ") ;
898
+ TestContext . Out . WriteLine ( $ " DeclarationType: { System . Enum . GetName ( d . DeclarationType . GetType ( ) , d . DeclarationType ) } ") ;
899
+ TestContext . Out . WriteLine ( $ " Scope: { d . Scope } ") ;
900
+ TestContext . Out . WriteLine ( $ " Selection: { d . Selection } ") ;
901
+ TestContext . Out . WriteLine ( $ " AsTypeName: { d . AsTypeName } ") ;
902
+ TestContext . Out . WriteLine ( "" ) ;
903
+ }
904
+
894
905
var messageBox = new Mock < IMessageBox > ( ) ;
895
906
var refactoring = new MoveCloserToUsageRefactoring ( vbe . Object , state , messageBox . Object ) ;
896
907
refactoring . Refactor ( state . AllUserDeclarations . Single ( d => d . DeclarationType == DeclarationType . Variable ) ) ;
You can’t perform that action at this time.
0 commit comments