Skip to content

Commit 4400687

Browse files
committed
Correct test.
1 parent d122208 commit 4400687

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RubberduckTests/QuickFixes/RemoveUnassignedVariableUsageQuickFixTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public void UnassignedVariableUsage_QuickFixWorksNestedWithBlock()
8686
const string inputCode =
8787
@"Sub test()
8888
Dim wb As Workbook
89+
Set wb = ThisWorkbook
8990
Dim ws As Worksheet
9091
With wb
9192
Debug.Print .Name
@@ -100,6 +101,7 @@ End With
100101
const string expectedCode =
101102
@"Sub test()
102103
Dim wb As Workbook
104+
Set wb = ThisWorkbook
103105
Dim ws As Worksheet
104106
With wb
105107
Debug.Print .Name

0 commit comments

Comments
 (0)