146 references to AddImportsStatement
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (146)
Completion\CompletionProviders\SymbolCompletionProviderTests.vb (146)
47Await VerifyNSATIsAbsentAsync(AddImportsStatement("Imports System", "$$")) 52Await VerifyItemExistsAsync(AddImportsStatement("Imports System", "Class A(Of T As $$"), "System") 57Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As $$"), "Console") 62Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As $$"), "String") 67Await VerifyItemExistsAsync(AddImportsStatement("Imports System", "Class A(Of T As { II, $$"), "System") 72Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As { II, $$"), "Console") 77Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As { II, $$"), "String") 82Await VerifyItemExistsAsync(AddImportsStatement("Imports System", "Class A(Of T As $$)"), "System") 87Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As $$)"), "Console") 92Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As $$)"), "String") 97Await VerifyItemExistsAsync(AddImportsStatement("Imports System", "Class A(Of T As { II, $$})"), "System") 102Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As { II, $$})"), "Console") 107Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Class A(Of T As { II, $$})"), "String") 113AddImportsStatement("Imports System", 121AddImportsStatement("Imports System", 129AddImportsStatement("Imports System", 137AddImportsStatement("Imports System", 145AddImportsStatement("Imports System", 153AddImportsStatement("Imports System", 160Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d As New $$"))) 165Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = GetType($$"))) 170Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = TypeOf d Is $$"))) 175Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = New $$"))) 180Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d() = New $$() {"))) 185Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = CType(obj, $$"))) 190Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = TryCast(obj, $$"))) 195Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = DirectCast(obj, $$"))) 200Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d() as $$("))) 205Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d as $$?"))) 210Await VerifyNSATIsAbsentAsync(AddImportsStatement("Imports System", CreateContent("Class A(Of $$"))) 215Await VerifyNSATIsAbsentAsync(AddImportsStatement("Imports System", CreateContent("Class A(Of T, $$"))) 220Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d as D(Of $$"))) 225Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d as D(Of A, $$"))) 230Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim anonymousCust2 = New With {Key $$"))) 235Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim anonymousCust = New With {.Name = $$"))) 240Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = $$"))) 245Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Return $$"))) 250Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("If $$"))) 256AddImportsStatement("Imports System", 265AddImportsStatement("Imports System", 273Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Error $$"))) 278Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Select $$"))) 283Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Select Case $$"))) 289AddImportsStatement("Imports System", 298AddImportsStatement("Imports System", 307AddImportsStatement("Imports System", 316AddImportsStatement("Imports System", 325AddImportsStatement("Imports System", 334AddImportsStatement("Imports System", 342Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("SyncLock $$"))) 347Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Do While $$"))) 352Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Do Until $$"))) 357Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("While $$"))) 362Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("For i = $$"))) 367Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("For i = 1 To $$"))) 372Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("For i = 1 To 10 Step $$"))) 377Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("For Each I in $$"))) 382Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Using $$"))) 387Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Throw $$"))) 392Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("$$ = a"))) 397Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("a = $$"))) 402Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Call $$"))) 407Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("$$(1)"))) 412Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("AddHandler $$"))) 417Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("AddHandler T.Event, AddressOf $$"))) 422Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("RemoveHandler $$"))) 427Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("RemoveHandler T.Event, AddressOf $$"))) 432Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("With $$"))) 437Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = ($$"))) 442Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = TypeOf $$"))) 447Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("$$.Name"))) 452Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("$$!Name"))) 457Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("$$(1)"))) 462Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("$$(Of Integer)"))) 467Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = CType($$"))) 472Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = TryCast($$"))) 477Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = DirectCast($$"))) 482Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = CInt($$"))) 487Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = $$ + d"))) 492Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = d + $$"))) 497Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = +$$"))) 502Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = If($$,"))) 507Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = If(a, $$"))) 512Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = If($$, a, b"))) 517Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = If(a, $$, c"))) 522Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = If(a, b, $$"))) 527Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("D($$)"))) 532Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("D(Name := $$)"))) 537Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a($$ To 10)"))) 542Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a(0 To $$)"))) 547Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = From var in $$"))) 552Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = From var In collection Let b = $$"))) 557Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = From c In col Aggregate o In c.o Into an = Any($$)"))) 562Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = From c In col Where $$"))) 567Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim customerList = From c In cust Order By c.C Skip While $$"))) 572Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim customerList = From c In cust Order By c.C Take While $$"))) 577Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = From c In cust Skip $$"))) 582Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = From c In cust Take $$"))) 587Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim p1 = From p In P Join d In Desc On $$"))) 592Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim p1 = From p In P Join d In Desc On p.P Equals $$"))) 597Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim a = From b In books Order By $$"))) 602Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim book As XElement = <book isbn=<%= $$ %>></book>"))) 608AddImportsStatement("Imports System", 617AddImportsStatement("Imports System", 625Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Erase $$"))) 630Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Erase i, $$"))) 635Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = new List(Of Integer) from { $$"))) 640Await VerifyNSATExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = { $$"))) 645Await VerifyNSATIsAbsentAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = ""$$"""))) 650Await VerifyNSATIsAbsentAsync(AddImportsStatement("Imports System", AddInsideMethod("' $$"))) 656AddImportsStatement("Imports System", 664AddImportsStatement("Imports System", 673Await VerifyItemExistsAsync(AddImportsStatement("Imports System", "Imports T = $$"), "System") 674Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Imports T = $$"), "String") 685Await VerifyItemExistsAsync(AddImportsStatement("Imports System", "Imports $$"), "System") 686Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Imports $$"), "String") 691Await VerifyItemExistsAsync(AddImportsStatement("Imports System", "Imports System, $$"), "System") 692Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "Imports System, $$"), "String") 698Await VerifyItemExistsAsync(AddImportsStatement("Imports System", CreateContent("<$$>")), "System") 699Await VerifyItemExistsAsync(AddImportsStatement("Imports System", CreateContent("<$$>")), "String") 706AddImportsStatement("Imports System", 710AddImportsStatement("Imports System", 719AddImportsStatement("Imports System", 724AddImportsStatement("Imports System", 770AddImportsStatement("Imports System", 777AddImportsStatement("Imports System", 784AddImportsStatement("Imports System", 791AddImportsStatement("Imports System", 798AddImportsStatement("Imports System", 805AddImportsStatement("Imports System", 812AddImportsStatement("Imports System", 819AddImportsStatement("Imports System", 826AddImportsStatement("Imports System", 833AddImportsStatement("Imports System", 840AddImportsStatement("Imports System", 847AddImportsStatement("Imports System", 854AddImportsStatement("Imports System", 861AddImportsStatement("Imports System", 883AddImportsStatement("Imports System", 3041Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", "System.Console.$$"), "Beep") 3052AddImportsStatement("Imports System", 3059Await VerifyItemIsAbsentAsync(AddImportsStatement("Imports System", AddInsideMethod("Dim d = ""Console.$$")), "Beep") 3069Await VerifyItemExistsAsync(AddImportsStatement("Imports System", AddInsideMethod("Console.$$")), "Beep") 3075AddImportsStatement("Imports System", 3085AddImportsStatement("Imports System", 3093AddImportsStatement("Imports System",