51 references to TestInMethodAsync
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (51)
TypeInferrer\TypeInferrerTests.vb (51)
65Await TestInMethodAsync("Dim q = If([|Goo()|], 1, 2)", "System.Boolean", mode)
70Await TestInMethodAsync("Dim q = If(a, [|Goo()|], 2)", "System.Int32", mode)
75Await TestInMethodAsync("Dim q = If(a, """", [|Goo()|])", "System.String", mode)
80Await TestInMethodAsync("Dim q As Integer = [|Goo()|]", "System.Int32", mode)
85Await TestInMethodAsync("Dim q = [|Goo()|]", "System.Object", mode)
91Await TestInMethodAsync("Dim q = If([|Goo()|], 1)", "System.Int32?", mode)
97Await TestInMethodAsync(<text>Dim b as Boolean?
104Await TestInMethodAsync(<text>Dim s As String
111Await TestInMethodAsync("Dim q = If([|Goo()|], String.Empty)", "System.String", mode)
116Await TestInMethodAsync(<text>Dim s As String
122Await TestInMethodAsync(<text>Dim s As String
128Await TestInMethodAsync(<text>Dim s
134Await TestInMethodAsync("Dim q = x << [|Goo()|]", "System.Int32", mode)
139Await TestInMethodAsync("Dim q = x >> [|Goo()|]", "System.Int32", mode)
145Await TestInMethodAsync("Dim q : q <<= [|Goo()|]", "System.Int32", mode)
151Await TestInMethodAsync("Dim q : q >>= [|Goo()|]", "System.Int32", mode)
156Await TestInMethodAsync("Dim q : [|somefield|] <<= q", "System.Int32", TestMode.Node)
161Await TestInMethodAsync("Dim q : [|somefield|] >>= q", "System.Int32", TestMode.Node)
166Await TestInMethodAsync("Dim q As String : q >>= [|Goo()|]", "System.Int32", mode)
171Await TestInMethodAsync("Dim q As String : [|somefield|] >>= q", "System.Int32", TestMode.Node)
181Await TestInMethodAsync("Return [|Goo()|]", "Global.System.Void", mode)
198Await TestInMethodAsync(<Code>Dim F As System.Func(Of String, Integer) = Function (s)
218Await TestInMethodAsync("Dim f As System.Func(Of String, Integer) = Function (s) [|Goo()|]", "System.Int32", mode)
223Await TestInMethodAsync("Throw [|Goo()|]", "Global.System.Exception", mode)
228Await TestInMethodAsync("Try : Catch e As [|Goo|] : End Try", "Global.System.Exception", mode)
233Await TestInMethodAsync("If [|Goo()|] : End If", "System.Boolean", mode)
238Await TestInMethodAsync("While [|Goo()|] : End While", "System.Boolean", mode)
243Await TestInMethodAsync("Do : Loop While [|Goo()|]", "System.Boolean", mode)
249Await TestInMethodAsync("For i As Integer = 1 To 2 Step [|Goo|]", "System.Int32", mode)
254Await TestInMethodAsync("Using [|Goo()|] : End Using", "Global.System.IDisposable", mode)
259Await TestInMethodAsync("Using i As Integer = [|Goo()|] : End Using", "System.Int32", mode)
265Await TestInMethodAsync("Using v = [|Goo()|] : End Using", "Global.System.IDisposable", mode)
271Await TestInMethodAsync("For Each v As Integer in [|Goo()|] : Next", "Global.System.Collections.Generic.IEnumerable(Of System.Int32)", mode)
276Await TestInMethodAsync("Dim q = +[|Goo()|]", "System.Int32", mode)
281Await TestInMethodAsync("Dim q = -[|Goo()|]", "System.Int32", mode)
287Await TestInMethodAsync("Dim q = Not [|Goo()|] And 5", "System.Int32", mode)
292Await TestInMethodAsync("Dim q = Not [|Goo()|]", "System.Boolean", mode)
298Await TestInMethodAsync("Dim q As String() = New String([|Goo()|])", "System.Char()", mode)
304Await TestInMethodAsync("Dim q As String() = New String([|Goo()|]) { }", "System.Int32", mode)
309Await TestInMethodAsync("Select Case [|Goo()|] : End Select", "System.Int32", mode)
314Await TestInMethodAsync("Select Case [|Goo()|] : Case Else: End Select", "System.Int32", mode)
319Await TestInMethodAsync("Select Case [|Goo()|] : Case ""a"": End Select", "System.String", mode)
324Await TestInMethodAsync("Bar([|Goo()|])", "System.Object", mode)
349Await TestInMethodAsync("Dim l = New C([|Goo()|])", "System.Object", mode)
375Await TestInMethodAsync("Dim i As String() : Dim j = i([|Goo()|])", "System.Int32", mode)
661Await TestInMethodAsync(text, "System.Boolean", mode)
668Await TestInMethodAsync(text, "System.Boolean", mode)
674Await TestInMethodAsync(text, "System.Object", TestMode.Node)
681Await TestInMethodAsync(text, "System.Int32", mode)
687Await TestInMethodAsync(
694Await TestInMethodAsync(