Skip to content

Commit f767104

Browse files
committed
Test to see if we can get more diagnostics from AppVeyor
1 parent 5f8a69d commit f767104

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

RubberduckTests/Refactoring/MoveCloserToUsageTests.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Rubberduck.UI;
88
using Rubberduck.VBEditor;
99
using Rubberduck.VBEditor.SafeComWrappers;
10-
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
1110
using RubberduckTests.Mocks;
1211

1312
namespace RubberduckTests.Refactoring
@@ -891,6 +890,18 @@ Dim foo As Object
891890

892891
using (var state = MockParser.CreateAndParse(vbe.Object))
893892
{
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+
894905
var messageBox = new Mock<IMessageBox>();
895906
var refactoring = new MoveCloserToUsageRefactoring(vbe.Object, state, messageBox.Object);
896907
refactoring.Refactor(state.AllUserDeclarations.Single(d => d.DeclarationType == DeclarationType.Variable));

0 commit comments

Comments
 (0)