366 instantiations of SignatureHelpTestItem
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (366)
SignatureHelp\AttributeSignatureHelpProviderTests.cs (37)
43new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 67new SignatureHelpTestItem("SomethingAttribute()", "Summary For Attribute", null, currentParameterIndex: 0) 88new SignatureHelpTestItem("SomethingAttribute(int i)", currentParameterIndex: 0, isSelected: true), 89new SignatureHelpTestItem("SomethingAttribute(string i)", currentParameterIndex: 0), 110new SignatureHelpTestItem("SomethingAttribute(int i)", currentParameterIndex: 0), 111new SignatureHelpTestItem("SomethingAttribute(string i)", currentParameterIndex: 0, isSelected: true), 134new SignatureHelpTestItem("SomethingAttribute(int someInteger, string someString)", string.Empty, string.Empty, currentParameterIndex: 0) 162new SignatureHelpTestItem("SomethingAttribute(int someInteger, string someString)", "Summary For Attribute", "Param someInteger", currentParameterIndex: 0) 184new SignatureHelpTestItem("SomethingAttribute(int someInteger, string someString)", string.Empty, string.Empty, currentParameterIndex: 1) 212new SignatureHelpTestItem("SomethingAttribute(int someInteger, string someString)", "Summary For Attribute", "Param someString", currentParameterIndex: 1) 233new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 338new SignatureHelpTestItem($"SomethingAttribute({FeaturesResources.Properties}: [goo = int])", string.Empty, string.Empty, currentParameterIndex: 0) 361new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 384new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 407new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 435new SignatureHelpTestItem($"SomethingAttribute({FeaturesResources.Properties}: [goo = int])", string.Empty, string.Empty, currentParameterIndex: 0) 459new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 482new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 505new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 528new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 551new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 583new SignatureHelpTestItem($"DerivedAttribute({FeaturesResources.Properties}: [Name = string])", string.Empty, string.Empty, currentParameterIndex: 0) 615new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], [string bar = null], {FeaturesResources.Properties}: [fieldbar = string], [fieldfoo = int])", string.Empty, "GooParameter", currentParameterIndex: 0) 644new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], [string bar = null], {FeaturesResources.Properties}: [fieldbar = string], [fieldfoo = int])", string.Empty, "BarParameter", currentParameterIndex: 1) 673new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], [string bar = null], {FeaturesResources.Properties}: [fieldbar = string], [fieldfoo = int])", string.Empty, string.Empty, currentParameterIndex: 2) 700new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], {FeaturesResources.Properties}: [goo = int])", string.Empty, "GooParameter", currentParameterIndex: 0) 727new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], {FeaturesResources.Properties}: [goo = int])", string.Empty, string.Empty, currentParameterIndex: 1) 757new SignatureHelpTestItem("SomethingAttribute(int someParameter, bool somethingElse)", string.Empty, string.Empty, currentParameterIndex: 0) 782new SignatureHelpTestItem("SomethingAttribute(int someParameter, bool somethingElse)", string.Empty, string.Empty, currentParameterIndex: 1) 843new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 876new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 909new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 956new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 961new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 962new SignatureHelpTestItem("MyAttribute(int x, int y)", string.Empty, string.Empty, currentParameterIndex: 0) 1002var expectedDescription = new SignatureHelpTestItem($"Secret()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 1040var expectedDescription = new SignatureHelpTestItem($"Secret()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0);
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (33)
44new SignatureHelpTestItem("BaseClass()", string.Empty, null, currentParameterIndex: 0) 69new SignatureHelpTestItem("BaseClass()", "Summary for BaseClass", null, currentParameterIndex: 0) 93new SignatureHelpTestItem("BaseClass(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0) 120new SignatureHelpTestItem("BaseClass(int a, int b)", "Summary for BaseClass", "Param a", currentParameterIndex: 0) 147new SignatureHelpTestItem("BaseClass(int a, int b)", "Summary for BaseClass", "Param b", currentParameterIndex: 1) 174new SignatureHelpTestItem("BaseClass(int a, int b)", "Summary for BaseClass", "Param b", currentParameterIndex: 1) 193new SignatureHelpTestItem("Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 212new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 231new SignatureHelpTestItem("Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 250new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 271new SignatureHelpTestItem("D(int i)", currentParameterIndex: 0, isSelected: true), 272new SignatureHelpTestItem("D(string i)", currentParameterIndex: 0), 293new SignatureHelpTestItem("D(int i)", currentParameterIndex: 0), 294new SignatureHelpTestItem("D(string i)", currentParameterIndex: 0, isSelected: true), 335new SignatureHelpTestItem("Goo(int a)", string.Empty, string.Empty, currentParameterIndex: 0) 354new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 373new SignatureHelpTestItem("Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 392new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 445new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 476new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 507new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 551new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 556new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 557new SignatureHelpTestItem("BaseClass(int x, int y)", string.Empty, string.Empty, currentParameterIndex: 0) 600var expectedDescription = new SignatureHelpTestItem($"Secret(int secret)\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 641var expectedDescription = new SignatureHelpTestItem($"Secret(int secret)\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 689new SignatureHelpTestItem("D(object o)", currentParameterIndex: 0) 708new SignatureHelpTestItem("D(object o)", currentParameterIndex: 0) 728new SignatureHelpTestItem("D(object o)", currentParameterIndex: 0) 747new SignatureHelpTestItem("D(object o)", currentParameterIndex: 0) 775new SignatureHelpTestItem("Program(int i1, int i2, int i3)", currentParameterIndex: expectedParameterIndex, isSelected: true), 811new SignatureHelpTestItem("Program(int i, string s)", currentParameterIndex: expectedParameterIndex, isSelected: expecteSelectedIndex == index++), 812new SignatureHelpTestItem("Program(string s, string s2)", currentParameterIndex: expectedParameterIndex, isSelected: expecteSelectedIndex == index++),
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (31)
51new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 76new SignatureHelpTestItem("ref int C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 101new SignatureHelpTestItem("ref readonly int C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 132new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 167new SignatureHelpTestItem("string C[int a]", "Summary for this.", "Param a", currentParameterIndex: 0) 197new SignatureHelpTestItem("string C[int a, bool b]", string.Empty, string.Empty, currentParameterIndex: 1) 233new SignatureHelpTestItem("string C[int a, bool b]", "Summary for this.", "Param b", currentParameterIndex: 1) 265new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 296new SignatureHelpTestItem("string C[int a, bool b]", string.Empty, string.Empty, currentParameterIndex: 1) 361new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 392new SignatureHelpTestItem("string C[int a, bool b]", string.Empty, string.Empty, currentParameterIndex: 1) 464new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 501new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 538new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 591new SignatureHelpTestItem("int Goo[double d]", string.Empty, string.Empty, currentParameterIndex: 0) 596new SignatureHelpTestItem("int Goo[double d]", string.Empty, string.Empty, currentParameterIndex: 0), 597new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0), 634new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 671new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 709new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 770new SignatureHelpTestItem("string CCC.IndexProp[int p1]", string.Empty, string.Empty, currentParameterIndex: 0) 775new SignatureHelpTestItem("string CCC.IndexProp[int p1]", "An index property from VB", "p1 is an integer index", currentParameterIndex: 0) 819var expectedDescription = new SignatureHelpTestItem($"int C[int z]\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 861var expectedDescription = new SignatureHelpTestItem($"int C[int z]\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 896new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 926new SignatureHelpTestItem("int P[int z]", string.Empty, string.Empty, currentParameterIndex: 0) 935var expected = new[] { new SignatureHelpTestItem("char string[int index]") }; 982""", [new SignatureHelpTestItem("int System.Collections.Generic.List<int>[int index]")]); 1015await TestAsync(markup, [new SignatureHelpTestItem("int WithIndexer[int index]")], usePreviousCharAsTrigger: true); 1035await TestAsync(markup, [new SignatureHelpTestItem("Indexable Indexable[int x]")], usePreviousCharAsTrigger: false); 1055await TestAsync(markup, [new SignatureHelpTestItem("Indexable Indexable[int x]")], usePreviousCharAsTrigger: false);
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (16)
42new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 67new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 92new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 115new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 141new SignatureHelpTestItem($"({CSharpFeaturesResources.awaitable}) Task<int> Program.Goo<T>()", methodDocumentation: string.Empty, string.Empty, currentParameterIndex: 0) 172new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 207new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 242new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 289new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 294new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0), 295new SignatureHelpTestItem("void C.Goo<T, U>(T x, U y)", string.Empty, string.Empty, currentParameterIndex: 0) 332new SignatureHelpTestItem("void IGoo.Bar<T>()", currentParameterIndex: 0), 333new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) void IGoo.Bar<T1, T2>()", currentParameterIndex: 0), 361new SignatureHelpTestItem("void C.Goo<T>()", 385new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 0) 408new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 1)
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (32)
46new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 69new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 92new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 0) 115new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 1) 143new SignatureHelpTestItem("G<S, T>", 174new SignatureHelpTestItem("G<S, T>", "Summary for G", "TypeParamT. Also see S", currentParameterIndex: 1) 202new SignatureHelpTestItem("G<S> where S : struct", string.Empty, string.Empty, currentParameterIndex: 0) 226new SignatureHelpTestItem("G<S> where S : class", string.Empty, string.Empty, currentParameterIndex: 0) 250new SignatureHelpTestItem("G<S> where S : new()", string.Empty, string.Empty, currentParameterIndex: 0) 276new SignatureHelpTestItem("G<S> where S : Base", string.Empty, string.Empty, currentParameterIndex: 0) 302new SignatureHelpTestItem("G<S> where S : Base<S>", string.Empty, string.Empty, currentParameterIndex: 0) 328new SignatureHelpTestItem("G<S> where S : Base<int>", string.Empty, string.Empty, currentParameterIndex: 0) 354new SignatureHelpTestItem("G<S> where S : Base<Base<int>>", string.Empty, string.Empty, currentParameterIndex: 0) 378new SignatureHelpTestItem("G<S, T> where S : T", string.Empty, string.Empty, currentParameterIndex: 0) 413new SignatureHelpTestItem("G<S, T> where S : Base, new()", "Summary1", "SummaryS", currentParameterIndex: 0) 448new SignatureHelpTestItem("G<S, T> where T : class, S, IGoo, new()", "Summary1", "SummaryT", currentParameterIndex: 1) 472new SignatureHelpTestItem("G<S> where S : allows ref struct", string.Empty, string.Empty, currentParameterIndex: 0) 499new SignatureHelpTestItem("void C.Goo<T>()", string.Empty, string.Empty, currentParameterIndex: 0) 529new SignatureHelpTestItem("void C.Goo<S, T>(S s, T t)", 553new SignatureHelpTestItem("void C.Goo<S, T>(S s, T t)", string.Empty, string.Empty, currentParameterIndex: 1) 581new SignatureHelpTestItem("void C.Goo<S, T>(S s, T t)", "SummaryForGoo", "SummaryForS", currentParameterIndex: 0) 609new SignatureHelpTestItem("void C.Goo<S, T>(S s, T t)", "SummaryForGoo", "SummaryForT", currentParameterIndex: 1) 639new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) void G.Goo<T>()", string.Empty, string.Empty, currentParameterIndex: 0) 678new SignatureHelpTestItem("S C.Goo<S, T>(S s, T t) where S : Base, new()", "GooSummary", "ParamS", currentParameterIndex: 0) 712new SignatureHelpTestItem("S C.Goo<S, T>(S s, T t) where T : class, S, IGoo, new()", "GooSummary", "ParamT", currentParameterIndex: 1) 741new SignatureHelpTestItem("void C.M<T>(T arg) where T : unmanaged", "summary headline", "T documentation", currentParameterIndex: 0) 785var expectedDescription = new SignatureHelpTestItem($"D<T>\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 823var expectedDescription = new SignatureHelpTestItem($"D<T>\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 853new SignatureHelpTestItem("C<T>", string.Empty, string.Empty, currentParameterIndex: 0) 886new SignatureHelpTestItem("C<T>", string.Empty, string.Empty, currentParameterIndex: 0) 919new SignatureHelpTestItem("C<T>", string.Empty, string.Empty, currentParameterIndex: 0) 986new SignatureHelpTestItem("G<S, T>", """
SignatureHelp\InitializerExpressionSignatureHelpProviderTests.cs (11)
41new SignatureHelpTestItem("void List<int>.Add(int item)", currentParameterIndex: 0) 64new SignatureHelpTestItem("void Dictionary<int, string>.Add(int key, string value)", currentParameterIndex: 0) 87new SignatureHelpTestItem("void Dictionary<int, string>.Add(int key, string value)", currentParameterIndex: 1) 115new SignatureHelpTestItem("void Dictionary<int, string>.Add(int key, string value)", currentParameterIndex: 0) 141new SignatureHelpTestItem("void Dictionary<int, string>.Add(int key, string value)", currentParameterIndex: 0) 169new SignatureHelpTestItem("void Bar.Add(int i)", currentParameterIndex: 0), 170new SignatureHelpTestItem("void Bar.Add(int i, string s)", currentParameterIndex: 0, isSelected: true), 171new SignatureHelpTestItem("void Bar.Add(int i, string s, bool b)", currentParameterIndex: 0) 228new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) void Bar.Add(int i)", currentParameterIndex: 0), 229new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) void Bar.Add(int i, string s)", currentParameterIndex: 0, isSelected: true), 230new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) void Bar.Add(int i, string s, bool b)", currentParameterIndex: 0)
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (131)
38await TestAsync(markup, [new SignatureHelpTestItem("int C.Goo(int x)", currentParameterIndex: 0)]); 56await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(Action<int> f)", currentParameterIndex: 0)]); 74await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(Action<int> f)", currentParameterIndex: 0)]); 90await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]); 109await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", "Summary for goo", null, currentParameterIndex: 0)]); 125await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0)]); 146await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", "Summary for Goo", "Param a", currentParameterIndex: 0)]); 162await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 183await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", "Summary for Goo", "Param b", currentParameterIndex: 1)]); 202await TestAsync(markup, [new SignatureHelpTestItem("void SomeDelegate(int a)", parameterDocumentation: "Parameter docs", currentParameterIndex: 0)]); 221await TestAsync(markup, [new SignatureHelpTestItem("void SomeDelegate.Invoke(int a)", parameterDocumentation: "Parameter docs", currentParameterIndex: 0)]); 240await TestAsync(markup, [new SignatureHelpTestItem("System.IAsyncResult SomeDelegate.BeginInvoke(int a, System.AsyncCallback callback, object @object)", parameterDocumentation: "Parameter docs", currentParameterIndex: 0)]); 260await TestAsync(markup, [new SignatureHelpTestItem("System.IAsyncResult SomeDelegate.BeginInvoke(int a, System.AsyncCallback callback, object @object)", parameterDocumentation: null, currentParameterIndex: 1)]); 276await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]); 293await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0)]); 309await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 328await TestAsync(markup, [new SignatureHelpTestItem("void Action<int>(int obj)", string.Empty, string.Empty, currentParameterIndex: 0)]); 348await TestAsync(markup, [new SignatureHelpTestItem("void C.Bar(int a)", string.Empty, string.Empty, currentParameterIndex: 0)]); 376await TestAsync(markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) int string.ExtensionMethod(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], sourceCodeKind: SourceCodeKind.Regular); 396await TestAsync(markup, [new SignatureHelpTestItem("void Class1.Goo([int a = 42])", string.Empty, string.Empty, currentParameterIndex: 0)]); 447await TestAsync(markup, [new SignatureHelpTestItem("double C.Goo(double x)", string.Empty, string.Empty, currentParameterIndex: 0)]); 474await TestAsync(markup, [new SignatureHelpTestItem("double C.Goo(double x, double y)", string.Empty, string.Empty, currentParameterIndex: 0)]); 498await TestAsync(markup, [new SignatureHelpTestItem("void C.Bar()", currentParameterIndex: 0)]); 523new SignatureHelpTestItem("void C.Bar()", currentParameterIndex: 0), 524new SignatureHelpTestItem("void C.Bar(int i)", currentParameterIndex: 0)]); 548new SignatureHelpTestItem( 590await TestAsync(markup, [new SignatureHelpTestItem( 622await TestAsync(markup, [new SignatureHelpTestItem( 649await TestAsync(markup, [new SignatureHelpTestItem( 681await TestAsync(markup, [new SignatureHelpTestItem( 708await TestAsync(markup, [new SignatureHelpTestItem( 740await TestAsync(markup, [new SignatureHelpTestItem( 772await TestAsync(markup, [new SignatureHelpTestItem( 877markup, [new SignatureHelpTestItem("void Program.SomeMethod([CancellationToken token = default])", string.Empty, null, currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 893await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 909await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)], usePreviousCharAsTrigger: true); 1009List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 1047expectedOrderedItemsSameSolution: [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)], 1074List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 1123expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)], 1125new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0), 1126new SignatureHelpTestItem("void Goo.Bar(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], 1164new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0), 1165new SignatureHelpTestItem("void Goo.Bar(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], 1201new SignatureHelpTestItem("void D.Goo(int derived)", string.Empty, string.Empty, currentParameterIndex: 0), 1234List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]; 1275new SignatureHelpTestItem("void B.Goo()", string.Empty, null, currentParameterIndex: 0), 1276new SignatureHelpTestItem("void D.Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 1313expectedOrderedItemsSameSolution: [new SignatureHelpTestItem("void B.Goo()", string.Empty, null, currentParameterIndex: 0)], 1340new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1341new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0), 1376expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1378new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1379new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1408expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0)], 1410new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1411new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1444new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1445new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1473new SignatureHelpTestItem("void C<int, int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1474new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0), 1509expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0)], 1511new SignatureHelpTestItem("void C<int, int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1512new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0)], 1544new SignatureHelpTestItem("void C<int, int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1545new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0)], 1566await TestSignatureHelpWithMscorlib45Async(markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.awaitable}) Task C.Goo()", methodDocumentation: string.Empty, currentParameterIndex: 0)], "C#"); 1583await TestSignatureHelpWithMscorlib45Async(markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.awaitable}) Task<Task<int>> C.Goo()", methodDocumentation: string.Empty, currentParameterIndex: 0)], "C#"); 1610await TestAsync(markup, [new SignatureHelpTestItem("void C<int>.M(int t)", string.Empty, "Real t", currentParameterIndex: 0)]); 1627new SignatureHelpTestItem( 1663new SignatureHelpTestItem("void IGoo.Bar<T>()", currentParameterIndex: 0), 1664new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) void IGoo.Bar<T1, T2>()", currentParameterIndex: 0)], sourceCodeKind: SourceCodeKind.Regular); 1683new SignatureHelpTestItem("void Program.M(int i)", currentParameterIndex: 0, isSelected: true), 1684new SignatureHelpTestItem($"void Program.M(string s)", currentParameterIndex: 0)]); 1703new SignatureHelpTestItem("void Program.M(int i)", currentParameterIndex: 0, isSelected: true), 1704new SignatureHelpTestItem($"void Program.M(string s)", currentParameterIndex: 0)]); 1723new SignatureHelpTestItem("void Program.M(int i)", currentParameterIndex: 0), 1724new SignatureHelpTestItem($"void Program.M(string s)", currentParameterIndex: 0, isSelected: true)]); 1744new SignatureHelpTestItem("void D.M(int i)", currentParameterIndex: 0, isSelected: true), 1745new SignatureHelpTestItem("void D.M(string i)", currentParameterIndex: 0)]); 1766new SignatureHelpTestItem("void D.M(int i)", currentParameterIndex: 0, isSelected: true), 1767new SignatureHelpTestItem("void D.M(string i)", currentParameterIndex: 0)]); 1787new SignatureHelpTestItem("void D.M(int i)", currentParameterIndex: 0, isSelected: true), 1788new SignatureHelpTestItem("void D.M(string i)", currentParameterIndex: 0)]); 1808new SignatureHelpTestItem("void D.M(int i)", currentParameterIndex: 0), 1809new SignatureHelpTestItem("void D.M(string i)", currentParameterIndex: 0, isSelected: true)]); 1829new SignatureHelpTestItem("void D.M(ref int a, int i)", currentParameterIndex: 0), 1830new SignatureHelpTestItem("void D.M(out int b, int i)", currentParameterIndex: 0, isSelected: true)]); 1856await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i1, int i2, int i3)", currentParameterIndex: expectedParameterIndex, isSelected: true)]); 1881await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Delegate(int i1, int i2, int i3)", currentParameterIndex: expectedParameterIndex, isSelected: true)]); 1916new SignatureHelpTestItem("void Program.M(int i, string s)", currentParameterIndex: expectedParameterIndex, isSelected: expectedSelectedIndex == index++), 1917new SignatureHelpTestItem("void Program.M(string s, string s2)", currentParameterIndex: expectedParameterIndex, isSelected: expectedSelectedIndex == index++)]); 1940await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem($"void Program.M(string s, string s2)", currentParameterIndex: expectedParameterIndex, isSelected: true)]); 1974await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i1, params int[] i2)", currentParameterIndex: expectedParameterIndex, isSelected: true)]); 1991await TestAsync(source, [new SignatureHelpTestItem("void Program.M(int i1, params int i2)", currentParameterIndex: 1, isSelected: true)]); 2009await TestAsync(markup, [new SignatureHelpTestItem($"void Program.M(string s1, string s2, string s3)", currentParameterIndex: 1, isSelected: true)]); 2030await TestAsync(markup.Replace("ARGUMENTS", arguments), [new SignatureHelpTestItem("void Program.M(int i, string s)", currentParameterIndex: expectedParameterIndex, isSelected: true)]); 2051await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", "Summary for goo. See method C.Bar()", null, currentParameterIndex: 0)]); 2082await VerifyItemWithReferenceWorkerAsync(markup, [new SignatureHelpTestItem($""" 2126await VerifyItemWithReferenceWorkerAsync(markup, [new SignatureHelpTestItem($""" 2158new SignatureHelpTestItem("void Goo.Bar(int x)", currentParameterIndex: 0), 2159new SignatureHelpTestItem("void Goo.Bar(string s)", currentParameterIndex: 0)]); 2184new SignatureHelpTestItem("void Goo.Bar(int x)", currentParameterIndex: 0), 2185new SignatureHelpTestItem("void Goo.Bar(string s)", currentParameterIndex: 0)]); 2210new SignatureHelpTestItem("void Goo.Bar(int x)", currentParameterIndex: 0), 2211new SignatureHelpTestItem("void Goo.Bar(string s)", currentParameterIndex: 0)]); 2274new SignatureHelpTestItem("bool object.Equals(object objA, object objB)"), 2275new SignatureHelpTestItem("bool string.Equals(string a, string b)"), 2276new SignatureHelpTestItem("bool string.Equals(string a, string b, System.StringComparison comparisonType)")]); 2300await TestAsync(markup, [new SignatureHelpTestItem("void Test.Goo.Bar(string s)")]); 2341await VerifyItemWithReferenceWorkerAsync(markup, [new SignatureHelpTestItem($""" 2369new SignatureHelpTestItem("void C.Goo<string>(string a)", string.Empty, string.Empty, currentParameterIndex: 0), 2370new SignatureHelpTestItem("void C.Goo<T, U>(T a, U b)", string.Empty)]); 2391new SignatureHelpTestItem("void C.Goo<T>(T a)", string.Empty), 2392new SignatureHelpTestItem("void C.Goo<T, U>(T a, U b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 2415await TestAsync(markup, [new SignatureHelpTestItem("void List<int>.Add(int item)")]); 2431await TestAsync(markup, [new SignatureHelpTestItem("int C.Goo(object x)", currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 2447await TestAsync(markup, [new SignatureHelpTestItem("int C.Goo(object x)", currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 2463await TestAsync(markup, [new SignatureHelpTestItem("int C.Goo(object x)", currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 2479await TestAsync(markup, [new SignatureHelpTestItem("int C.Goo(object x)", currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 2504new SignatureHelpTestItem("bool Comparer.Equals(object x)", currentParameterIndex: 1), 2505new SignatureHelpTestItem("bool Comparer.Equals(string x, string y)", currentParameterIndex: 1, isSelected: true)]); 2523await TestAsync(markup, [new SignatureHelpTestItem("void Local()")]); 2541await TestAsync(markup, [new SignatureHelpTestItem("void Local()")]); 2559await TestAsync(markup, [new SignatureHelpTestItem("int delegate*(int)", currentParameterIndex: 0)]); 2577await TestAsync(markup, [new SignatureHelpTestItem("int delegate*(string, long)", currentParameterIndex: 1)]); 2613expectedItems.Add(new SignatureHelpTestItem($""" 2624expectedItems.Add(new SignatureHelpTestItem($"void C.M(object o)", currentParameterIndex: 0)); 2625expectedItems.Add(new SignatureHelpTestItem($""" 2672markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) IResourceBuilder<C> IResourceBuilder<C>.WithServiceBinding<C>(int containerPort, [int? hostPort = null], [string? scheme = null], [string? name = null], [string? env = null])", currentParameterIndex: 0)], 2711markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) IResourceBuilder<C> IResourceBuilder<C>.WithServiceBinding<C>(int containerPort, [int? hostPort = null], [string? scheme = null], [string? name = null], [string? env = null])", currentParameterIndex: 0)],
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (41)
41new SignatureHelpTestItem("C()", string.Empty, null, currentParameterIndex: 0) 68new SignatureHelpTestItem("C()", string.Empty, null, currentParameterIndex: 0) 94new SignatureHelpTestItem("C()", "Summary for C", null, currentParameterIndex: 0) 116new SignatureHelpTestItem("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0) 139new SignatureHelpTestItem("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0) 167new SignatureHelpTestItem("C(int a, int b)", "Summary for C", "Param a", currentParameterIndex: 0) 189new SignatureHelpTestItem("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 216new SignatureHelpTestItem("C(int a, int b)", "Summary for C", "Param b", currentParameterIndex: 1) 239new SignatureHelpTestItem("D(int i)", currentParameterIndex: 0, isSelected: true), 240new SignatureHelpTestItem("D(string i)", currentParameterIndex: 0), 263new SignatureHelpTestItem("D(int i)", currentParameterIndex: 0, isSelected: true), 264new SignatureHelpTestItem("D(string i)", currentParameterIndex: 0), 287new SignatureHelpTestItem("D(int i)", currentParameterIndex: 0), 288new SignatureHelpTestItem("D(string i)", currentParameterIndex: 0, isSelected: true), 311new SignatureHelpTestItem("D(int i)", currentParameterIndex: 0), 312new SignatureHelpTestItem("D(string i)", currentParameterIndex: 0, isSelected: true), 333new SignatureHelpTestItem("C()", string.Empty, null, currentParameterIndex: 0) 356new SignatureHelpTestItem("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0) 379new SignatureHelpTestItem("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 402new SignatureHelpTestItem("Action<int, int>(void (int, int) target)", string.Empty, string.Empty, currentParameterIndex: 0, isSelected: true) 451new SignatureHelpTestItem("C()", string.Empty, null, currentParameterIndex: 0) 476new SignatureHelpTestItem("C(int a, string b)", string.Empty, string.Empty, currentParameterIndex: 1) 540new SignatureHelpTestItem("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 576new SignatureHelpTestItem("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 611new SignatureHelpTestItem("Goo()", string.Empty, null, currentParameterIndex: 0) 659new SignatureHelpTestItem("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 664new SignatureHelpTestItem("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 665new SignatureHelpTestItem("Goo(long y)", string.Empty, string.Empty, currentParameterIndex: 0) 705var expectedDescription = new SignatureHelpTestItem($"D()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 743var expectedDescription = new SignatureHelpTestItem($"D()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 790new SignatureHelpTestItem("C(object o)", currentParameterIndex: 0) 813new SignatureHelpTestItem("C(object o)", currentParameterIndex: 0) 836new SignatureHelpTestItem("C(object o)", currentParameterIndex: 0) 859new SignatureHelpTestItem("C(object o)", currentParameterIndex: 0) 897new SignatureHelpTestItem("Program(int i, string s)", currentParameterIndex: expectedParameterIndex, isSelected: expecteSelectedIndex == index++), 898new SignatureHelpTestItem("Program(string s, string s2)", currentParameterIndex: expectedParameterIndex, isSelected: expecteSelectedIndex == index++), 948[new SignatureHelpTestItem("BaseClass(int val)", currentParameterIndex: 0)], 972new SignatureHelpTestItem("BaseClass(int val)", currentParameterIndex: 0), 973new SignatureHelpTestItem("BaseClass(int val, int val1)", currentParameterIndex: 0), 995new SignatureHelpTestItem("BaseClass(int val)", currentParameterIndex: 0), 996new SignatureHelpTestItem("BaseClass(int val, int val1)", currentParameterIndex: 0),
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProviderTests.cs (19)
37new SignatureHelpTestItem("Base(Base original)", string.Empty, null, currentParameterIndex: 0), 38new SignatureHelpTestItem("Base(int Identifier)", string.Empty, null, currentParameterIndex: 0, isSelected: true) 57new SignatureHelpTestItem("Base(int Identifier)", string.Empty, null, currentParameterIndex: 0, isSelected: true) 76new SignatureHelpTestItem("Base(Base original)", string.Empty, null, currentParameterIndex: 1), 77new SignatureHelpTestItem("Base(string name)", string.Empty, null, currentParameterIndex: 1), 78new SignatureHelpTestItem("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true) 97new SignatureHelpTestItem("Base(string name)", string.Empty, null, currentParameterIndex: 1), 98new SignatureHelpTestItem("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true) 118new SignatureHelpTestItem("Base(Base original)", string.Empty, null, currentParameterIndex: 1), 119new SignatureHelpTestItem("Base(string name)", "Summary for constructor", null, currentParameterIndex: 1), 120new SignatureHelpTestItem("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true) 140new SignatureHelpTestItem("Base(string name)", "Summary for constructor", null, currentParameterIndex: 1), 141new SignatureHelpTestItem("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true) 162new SignatureHelpTestItem("Base(Base original)", string.Empty, null, currentParameterIndex: 0), 163new SignatureHelpTestItem("Base(string name)", "Summary for constructor", "Param name", currentParameterIndex: 0), 164new SignatureHelpTestItem("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 0, isSelected: true) 185new SignatureHelpTestItem("Base(string name)", "Summary for constructor", "Param name", currentParameterIndex: 0), 186new SignatureHelpTestItem("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 0, isSelected: true) 204new SignatureHelpTestItem("Base(int Identifier)", string.Empty, null, currentParameterIndex: 0, isSelected: true)
SignatureHelp\TupleConstructionSignatureHelpProviderTests.cs (15)
36new SignatureHelpTestItem("(int, int)", currentParameterIndex: 0, parameterDocumentation: "") 54new SignatureHelpTestItem("(string?, string)", currentParameterIndex: 0) 75new SignatureHelpTestItem("(object a, object)", currentParameterIndex: 0) 93new SignatureHelpTestItem("(int, int)", currentParameterIndex: 0) 111new SignatureHelpTestItem("(int, int)", currentParameterIndex: 1, parameterDocumentation: "") 129new SignatureHelpTestItem("(int, int)", currentParameterIndex: 1) 150new SignatureHelpTestItem("(int a, int b)", currentParameterIndex: 0) 168new SignatureHelpTestItem("(int b, int c)", currentParameterIndex: 0) 186new SignatureHelpTestItem("(int, object)", currentParameterIndex: 1) 204new SignatureHelpTestItem("(int, object)", currentParameterIndex: 1) 222new SignatureHelpTestItem("(int, object)", currentParameterIndex: 1) 240new SignatureHelpTestItem("(object, object)", currentParameterIndex: 0) 264new SignatureHelpTestItem("(int, int)", currentParameterIndex: 0), 265new SignatureHelpTestItem("(string, string)", currentParameterIndex: 0) 298var expectedDescription = new SignatureHelpTestItem($"(int, string)", currentParameterIndex: 0);
236 references to SignatureHelpTestItem
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (222)
SignatureHelp\AttributeSignatureHelpProviderTests.cs (38)
41var expectedOrderedItems = new List<SignatureHelpTestItem> 65var expectedOrderedItems = new List<SignatureHelpTestItem> 86var expectedOrderedItems = new List<SignatureHelpTestItem> 108var expectedOrderedItems = new List<SignatureHelpTestItem> 132var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 182var expectedOrderedItems = new List<SignatureHelpTestItem> 210var expectedOrderedItems = new List<SignatureHelpTestItem> 231var expectedOrderedItems = new List<SignatureHelpTestItem> 336var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 382var expectedOrderedItems = new List<SignatureHelpTestItem> 405var expectedOrderedItems = new List<SignatureHelpTestItem> 433var expectedOrderedItems = new List<SignatureHelpTestItem> 457var expectedOrderedItems = new List<SignatureHelpTestItem> 480var expectedOrderedItems = new List<SignatureHelpTestItem> 503var expectedOrderedItems = new List<SignatureHelpTestItem> 526var expectedOrderedItems = new List<SignatureHelpTestItem> 549var expectedOrderedItems = new List<SignatureHelpTestItem> 581var expectedOrderedItems = new List<SignatureHelpTestItem> 613var expectedOrderedItems = new List<SignatureHelpTestItem> 642var expectedOrderedItems = new List<SignatureHelpTestItem> 671var expectedOrderedItems = new List<SignatureHelpTestItem> 698var expectedOrderedItems = new List<SignatureHelpTestItem> 725var expectedOrderedItems = new List<SignatureHelpTestItem> 755var expectedOrderedItems = new List<SignatureHelpTestItem> 780var expectedOrderedItems = new List<SignatureHelpTestItem> 805var expectedOrderedItems = new List<SignatureHelpTestItem>(); 841var expectedOrderedItems = new List<SignatureHelpTestItem> 874var expectedOrderedItems = new List<SignatureHelpTestItem> 881expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 907var expectedOrderedItems = new List<SignatureHelpTestItem> 914expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 954var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 959var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 1002var expectedDescription = new SignatureHelpTestItem($"Secret()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 1040var expectedDescription = new SignatureHelpTestItem($"Secret()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 1068var expectedOrderedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (33)
42var expectedOrderedItems = new List<SignatureHelpTestItem> 67var expectedOrderedItems = new List<SignatureHelpTestItem> 91var expectedOrderedItems = new List<SignatureHelpTestItem> 118var expectedOrderedItems = new List<SignatureHelpTestItem> 145var expectedOrderedItems = new List<SignatureHelpTestItem> 172var expectedOrderedItems = new List<SignatureHelpTestItem> 191var expectedOrderedItems = new List<SignatureHelpTestItem> 210var expectedOrderedItems = new List<SignatureHelpTestItem> 229var expectedOrderedItems = new List<SignatureHelpTestItem> 248var expectedOrderedItems = new List<SignatureHelpTestItem> 269var expectedOrderedItems = new List<SignatureHelpTestItem> 291var expectedOrderedItems = new List<SignatureHelpTestItem> 333var expectedOrderedItems = new List<SignatureHelpTestItem> 352var expectedOrderedItems = new List<SignatureHelpTestItem> 371var expectedOrderedItems = new List<SignatureHelpTestItem> 390var expectedOrderedItems = new List<SignatureHelpTestItem> 409var expectedOrderedItems = new List<SignatureHelpTestItem>(); 443var expectedOrderedItems = new List<SignatureHelpTestItem> 474var expectedOrderedItems = new List<SignatureHelpTestItem> 481expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 505var expectedOrderedItems = new List<SignatureHelpTestItem> 512expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 549var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 554var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 600var expectedDescription = new SignatureHelpTestItem($"Secret(int secret)\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 641var expectedDescription = new SignatureHelpTestItem($"Secret(int secret)\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 671var expectedOrderedItems = new List<SignatureHelpTestItem>(); 687var expectedOrderedItems = new List<SignatureHelpTestItem> 706var expectedOrderedItems = new List<SignatureHelpTestItem> 726var expectedOrderedItems = new List<SignatureHelpTestItem> 745var expectedOrderedItems = new List<SignatureHelpTestItem> 773var expectedOrderedItems = new List<SignatureHelpTestItem> 809var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (28)
49var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 99var expectedOrderedItems = new List<SignatureHelpTestItem> 130var expectedOrderedItems = new List<SignatureHelpTestItem> 165var expectedOrderedItems = new List<SignatureHelpTestItem> 195var expectedOrderedItems = new List<SignatureHelpTestItem> 231var expectedOrderedItems = new List<SignatureHelpTestItem> 263var expectedOrderedItems = new List<SignatureHelpTestItem> 294var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 390var expectedOrderedItems = new List<SignatureHelpTestItem> 421var expectedOrderedItems = new List<SignatureHelpTestItem>(); 462var expectedOrderedItems = new List<SignatureHelpTestItem> 499var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 506expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 536var expectedOrderedItems = new List<SignatureHelpTestItem> 543expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 589var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 594var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 632var expectedOrderedItems = new List<SignatureHelpTestItem> 669var expectedOrderedItems = new List<SignatureHelpTestItem> 707var expectedOrderedItems = new List<SignatureHelpTestItem> 768var metadataItems = new List<SignatureHelpTestItem> 773var projectReferenceItems = new List<SignatureHelpTestItem> 819var expectedDescription = new SignatureHelpTestItem($"int C[int z]\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 861var expectedDescription = new SignatureHelpTestItem($"int C[int z]\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 894var expectedOrderedItems = new List<SignatureHelpTestItem> 924var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (16)
40var expectedOrderedItems = new List<SignatureHelpTestItem> 65var expectedOrderedItems = new List<SignatureHelpTestItem> 90var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 139var expectedOrderedItems = new List<SignatureHelpTestItem> 170var expectedOrderedItems = new List<SignatureHelpTestItem> 205var expectedOrderedItems = new List<SignatureHelpTestItem> 212expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 240var expectedOrderedItems = new List<SignatureHelpTestItem> 255expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 287var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 292var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 330var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 383var expectedOrderedItems = new List<SignatureHelpTestItem> 406var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (35)
44var expectedOrderedItems = new List<SignatureHelpTestItem> 67var expectedOrderedItems = new List<SignatureHelpTestItem> 90var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 141var expectedOrderedItems = new List<SignatureHelpTestItem> 172var expectedOrderedItems = new List<SignatureHelpTestItem> 200var expectedOrderedItems = new List<SignatureHelpTestItem> 224var expectedOrderedItems = new List<SignatureHelpTestItem> 248var expectedOrderedItems = new List<SignatureHelpTestItem> 274var expectedOrderedItems = new List<SignatureHelpTestItem> 300var expectedOrderedItems = new List<SignatureHelpTestItem> 326var expectedOrderedItems = new List<SignatureHelpTestItem> 352var expectedOrderedItems = new List<SignatureHelpTestItem> 376var expectedOrderedItems = new List<SignatureHelpTestItem> 411var expectedOrderedItems = new List<SignatureHelpTestItem> 446var expectedOrderedItems = new List<SignatureHelpTestItem> 470var expectedOrderedItems = new List<SignatureHelpTestItem> 497var expectedOrderedItems = new List<SignatureHelpTestItem> 527var expectedOrderedItems = new List<SignatureHelpTestItem> 551var expectedOrderedItems = new List<SignatureHelpTestItem> 579var expectedOrderedItems = new List<SignatureHelpTestItem> 607var expectedOrderedItems = new List<SignatureHelpTestItem> 637var expectedOrderedItems = new List<SignatureHelpTestItem> 676var expectedOrderedItems = new List<SignatureHelpTestItem> 710var expectedOrderedItems = new List<SignatureHelpTestItem> 739await TestAsync(markup, new List<SignatureHelpTestItem> 785var expectedDescription = new SignatureHelpTestItem($"D<T>\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 823var expectedDescription = new SignatureHelpTestItem($"D<T>\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 851var expectedOrderedItems = new List<SignatureHelpTestItem> 884var expectedOrderedItems = new List<SignatureHelpTestItem> 891expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 917var expectedOrderedItems = new List<SignatureHelpTestItem> 924expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 955var expectedOrderedItems = new List<SignatureHelpTestItem>(); 984var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\InitializerExpressionSignatureHelpProviderTests.cs (8)
39var expectedOrderedItems = new List<SignatureHelpTestItem> 62var expectedOrderedItems = new List<SignatureHelpTestItem> 85var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 139var expectedOrderedItems = new List<SignatureHelpTestItem> 167var expectedOrderedItems = new List<SignatureHelpTestItem> 197var expectedOrderedItems = new List<SignatureHelpTestItem>(); 226var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (8)
1009List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 1074List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 1199List<SignatureHelpTestItem> expectedOrderedItems = 1234List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]; 1273var expectedOrderedItems = new List<SignatureHelpTestItem> 1338List<SignatureHelpTestItem> expectedOrderedItems = 1471List<SignatureHelpTestItem> expectedOrderedItems = 2608var expectedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (33)
39var expectedOrderedItems = new List<SignatureHelpTestItem> 66var expectedOrderedItems = new List<SignatureHelpTestItem> 92var expectedOrderedItems = new List<SignatureHelpTestItem> 114var expectedOrderedItems = new List<SignatureHelpTestItem> 137var expectedOrderedItems = new List<SignatureHelpTestItem> 165var expectedOrderedItems = new List<SignatureHelpTestItem> 187var expectedOrderedItems = new List<SignatureHelpTestItem> 214var expectedOrderedItems = new List<SignatureHelpTestItem> 237var expectedOrderedItems = new List<SignatureHelpTestItem> 261var expectedOrderedItems = new List<SignatureHelpTestItem> 285var expectedOrderedItems = new List<SignatureHelpTestItem> 309var expectedOrderedItems = new List<SignatureHelpTestItem> 331var expectedOrderedItems = new List<SignatureHelpTestItem> 354var expectedOrderedItems = new List<SignatureHelpTestItem> 377var expectedOrderedItems = new List<SignatureHelpTestItem> 400var expectedOrderedItems = new List<SignatureHelpTestItem> 449var expectedOrderedItems = new List<SignatureHelpTestItem> 474var expectedOrderedItems = new List<SignatureHelpTestItem> 499var expectedOrderedItems = new List<SignatureHelpTestItem>(); 538var expectedOrderedItems = new List<SignatureHelpTestItem> 574var expectedOrderedItems = new List<SignatureHelpTestItem> 581expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 609var expectedOrderedItems = new List<SignatureHelpTestItem> 616expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 657var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 662var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 705var expectedDescription = new SignatureHelpTestItem($"D()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 743var expectedDescription = new SignatureHelpTestItem($"D()\r\n\r\n{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)}\r\n{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}\r\n\r\n{FeaturesResources.You_can_use_the_navigation_bar_to_switch_contexts}", currentParameterIndex: 0); 788var expectedOrderedItems = new List<SignatureHelpTestItem> 811var expectedOrderedItems = new List<SignatureHelpTestItem> 834var expectedOrderedItems = new List<SignatureHelpTestItem> 857var expectedOrderedItems = new List<SignatureHelpTestItem> 895var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProviderTests.cs (9)
35var expectedOrderedItems = new List<SignatureHelpTestItem> 55var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 95var expectedOrderedItems = new List<SignatureHelpTestItem> 116var expectedOrderedItems = new List<SignatureHelpTestItem> 138var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 183var expectedOrderedItems = new List<SignatureHelpTestItem> 202var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\TupleConstructionSignatureHelpProviderTests.cs (14)
34var expectedOrderedItems = new List<SignatureHelpTestItem> 52var expectedOrderedItems = new List<SignatureHelpTestItem> 73var expectedOrderedItems = new List<SignatureHelpTestItem> 91var expectedOrderedItems = new List<SignatureHelpTestItem> 109var expectedOrderedItems = new List<SignatureHelpTestItem> 127var expectedOrderedItems = new List<SignatureHelpTestItem> 145var expectedOrderedItems = new List<SignatureHelpTestItem> 166var expectedOrderedItems = new List<SignatureHelpTestItem> 184var expectedOrderedItems = new List<SignatureHelpTestItem> 202var expectedOrderedItems = new List<SignatureHelpTestItem> 220var expectedOrderedItems = new List<SignatureHelpTestItem> 238var expectedOrderedItems = new List<SignatureHelpTestItem> 262var expectedOrderedItems = new List<SignatureHelpTestItem> 298var expectedDescription = new SignatureHelpTestItem($"(int, string)", currentParameterIndex: 0);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (14)
SignatureHelp\AbstractSignatureHelpProviderTests.cs (14)
50IEnumerable<SignatureHelpTestItem> expectedOrderedItemsOrNull = null, 72IEnumerable<SignatureHelpTestItem> expectedOrderedItemsOrNull = null, 183IEnumerable<SignatureHelpTestItem> expectedTestItems, SignatureHelpItems actualSignatureHelpItems) 199SignatureHelpTestItem expectedTestItem) 263IEnumerable<SignatureHelpTestItem> expectedOrderedItemsMetadataReference, 264IEnumerable<SignatureHelpTestItem> expectedOrderedItemsSameSolution, 282public Task TestSignatureHelpWithMetadataReferenceHelperAsync(string sourceCode, string referencedCode, IEnumerable<SignatureHelpTestItem> expectedOrderedItems, 303public async Task TestSignatureHelpWithProjectReferenceHelperAsync(string sourceCode, string referencedCode, IEnumerable<SignatureHelpTestItem> expectedOrderedItems, 326private async Task TestSignatureHelpInSameProjectHelperAsync(string sourceCode, string referencedCode, IEnumerable<SignatureHelpTestItem> expectedOrderedItems, 344protected async Task VerifyItemWithReferenceWorkerAsync(string xmlString, IEnumerable<SignatureHelpTestItem> expectedOrderedItems, bool hideAdvancedMembers) 380IEnumerable<SignatureHelpTestItem> expectedOrderedItemsOrNull = null, 422private static void CompareSelectedIndex(IEnumerable<SignatureHelpTestItem> expectedOrderedItemsOrNull, int? selectedItemIndex) 434foreach (var item in expectedOrderedItemsOrNull) 453IEnumerable<SignatureHelpTestItem> expectedOrderedItems,