File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed
RubberduckTests/QuickFixes Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ If True Then
23
23
Else
24
24
Foo = False
25
25
End If
26
- End Function" ;
26
+ End Function
27
+
28
+ Public Sub Test()
29
+ Foo ""test""
30
+ End Sub
31
+ " ;
27
32
28
33
const string expectedCode =
29
34
@"Public Sub Foo(ByVal bar As String)
@@ -32,7 +37,12 @@ If True Then
32
37
Else
33
38
34
39
End If
35
- End Sub" ;
40
+ End Sub
41
+
42
+ Public Sub Test()
43
+ Foo ""test""
44
+ End Sub
45
+ " ;
36
46
37
47
var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out var component ) ;
38
48
using ( var state = MockParser . CreateAndParse ( vbe . Object ) )
@@ -59,7 +69,12 @@ public void FunctionReturnValueNotUsed_QuickFixWorks_NoInterface_ManyBodyStateme
59
69
End Function
60
70
61
71
Sub goo()
62
- End Sub" ;
72
+ End Sub
73
+
74
+ Public Sub Test()
75
+ foo ""test""
76
+ End Sub
77
+ " ;
63
78
64
79
const string expectedCode =
65
80
@"Sub foo(ByRef fizz As Boolean)
@@ -70,7 +85,12 @@ Sub goo()
70
85
End Sub
71
86
72
87
Sub goo()
73
- End Sub" ;
88
+ End Sub
89
+
90
+ Public Sub Test()
91
+ foo ""test""
92
+ End Sub
93
+ " ;
74
94
75
95
var vbe = MockVbeBuilder . BuildFromSingleStandardModule ( inputCode , out var component ) ;
76
96
using ( var state = MockParser . CreateAndParse ( vbe . Object ) )
You can’t perform that action at this time.
0 commit comments