diff --git a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs index ee2a95af102b0..685c847fc75d9 100644 --- a/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs +++ b/src/EditorFeatures/CSharpTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.cs @@ -100,7 +100,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this {{type1}} x) + public static bool ExtensionMethod(this {{type1}} x) => true; } } @@ -124,7 +124,7 @@ public void M({{type2}} x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -140,7 +140,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this MyInt x) + public static bool ExtensionMethod(this MyInt x) => true; } } @@ -163,7 +163,7 @@ public void M(int x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -179,7 +179,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this MyInt x) + public static bool ExtensionMethod(this MyInt x) => true; } } @@ -202,7 +202,7 @@ public void M(int x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -218,7 +218,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this MyAlias x) + public static bool ExtensionMethod(this MyAlias x) => true; } } @@ -241,7 +241,7 @@ public void M(Exception x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -257,7 +257,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this MyAlias x) + public static bool ExtensionMethod(this MyAlias x) => true; } } @@ -280,7 +280,7 @@ public void M(System.Collections.Generic.List x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -295,7 +295,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this System.DateTime x) + public static bool ExtensionMethod(this System.DateTime x) => true; } } @@ -318,7 +318,7 @@ public void M(DateTime x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -334,7 +334,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this GenericCollection.List x) + public static bool ExtensionMethod(this GenericCollection.List x) => true; } } @@ -357,7 +357,7 @@ public void M(System.Collections.Generic.List x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", displayTextSuffix: "<>", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); @@ -373,7 +373,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this int x) + public static bool ExtensionMethod(this int x) => true; } } @@ -397,7 +397,7 @@ public void M(MyInt x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -414,7 +414,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this MyType t) + public static bool ExtensionMethod(this MyType t) => true; } } @@ -436,7 +436,7 @@ public void M(MyType x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -453,7 +453,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this object t) + public static bool ExtensionMethod(this object t) => true; } } @@ -475,7 +475,7 @@ public void M(MyType x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -498,7 +498,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this {{tupleType}} t) + public static bool ExtensionMethod(this {{tupleType}} t) => true; } } @@ -520,7 +520,7 @@ public void M({{tupleType}} x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -542,7 +542,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this MyBase t) + public static bool ExtensionMethod(this MyBase t) => true; } } @@ -564,7 +564,7 @@ public void M(MyType x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -588,7 +588,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this IEnumerable t) + public static bool ExtensionMethod(this IEnumerable t) => true; } } @@ -611,7 +611,7 @@ public void M({{type}} x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -634,7 +634,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this T t) + public static bool ExtensionMethod(this T t) => true; } } @@ -659,7 +659,7 @@ public void M({{type}} x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", displayTextSuffix: "<>", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); @@ -677,7 +677,7 @@ namespace Foo { internal static class ExtensionClass { - public static bool ExtentionMethod(this int x) + public static bool ExtensionMethod(this int x) => true; } } @@ -700,7 +700,7 @@ public void M(int x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemIsAbsentAsync( markup, - "ExtentionMethod", + "ExtensionMethod", inlineDescription: "Foo"); } @@ -714,7 +714,7 @@ namespace Foo { internal static class ExtensionClass { - internal static bool ExtentionMethod(this int x) + internal static bool ExtensionMethod(this int x) => true; } } @@ -737,7 +737,7 @@ public void M(int x) var markup = GetMarkup(file2, file1, ReferenceType.None); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodInternal, // This is based on declared accessibility inlineDescription: "Foo"); } @@ -755,7 +755,7 @@ namespace Foo { internal static class ExtensionClass { - internal static bool ExtentionMethod(this int x) + internal static bool ExtensionMethod(this int x) => true; } } @@ -776,7 +776,7 @@ public void M(int x) var markup = GetMarkup(file2, file1, refType); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodInternal, inlineDescription: "Foo"); } @@ -795,7 +795,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this MyGeneric x) + public static bool ExtensionMethod(this MyGeneric x) => true; } } @@ -818,7 +818,7 @@ public void M(MyGeneric x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -835,7 +835,7 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod(this int x) + public static bool ExtensionMethod(this int x) => true; } } @@ -858,7 +858,7 @@ public void M() await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -902,7 +902,7 @@ Imports System.Runtime.CompilerServices Namespace NS Public Module Foo - public Function ExtentionMethod(x As {vbType}) As Boolean + public Function ExtensionMethod(x As {vbType}) As Boolean Return True End Function End Module @@ -926,7 +926,7 @@ public void M({{csType}} x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "NS"); } @@ -940,7 +940,7 @@ Imports System.Runtime.CompilerServices Public Module Foo - public Function ExtentionMethod(x As Integer) As Boolean + public Function ExtensionMethod(x As Integer) As Boolean Return True End Function End Module @@ -963,7 +963,7 @@ public void M(int x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Root"); } @@ -977,7 +977,7 @@ Imports System.Runtime.CompilerServices Public Module Foo - public Function ExtentionMethod(x As Integer) As Boolean + public Function ExtensionMethod(x As Integer) As Boolean Return True End Function End Module @@ -1000,7 +1000,7 @@ public void M(int x) await VerifyImportItemIsAbsentAsync( markup, - "ExtentionMethod", + "ExtensionMethod", inlineDescription: ""); } @@ -1014,7 +1014,7 @@ namespace Foo { internal static class ExtensionClass { - internal static bool ExtentionMethod(this int x) + internal static bool ExtensionMethod(this int x) => true; } } @@ -1038,7 +1038,7 @@ public void M(int x) var markup = GetMarkup(file2, file1, ReferenceType.None); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodInternal, // This is based on declared accessibility inlineDescription: "Foo"); } @@ -1183,7 +1183,7 @@ namespace Foo { public static partial class ExtensionClass { - public static bool ExtentionMethod1(this string x) + public static bool ExtensionMethod1(this string x) => true; } } @@ -1195,7 +1195,7 @@ namespace Foo { public static partial class ExtensionClass { - public static bool ExtentionMethod2(this string x) + public static bool ExtensionMethod2(this string x) => true; } } @@ -1216,13 +1216,13 @@ public void M(string x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod1", + "ExtensionMethod1", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod2", + "ExtensionMethod2", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -1240,7 +1240,7 @@ namespace Foo { {{accessibility}} static class ExtensionClass { - public static bool ExtentionMethod1(this int x) + public static bool ExtensionMethod1(this int x) => true; } } @@ -1252,7 +1252,7 @@ namespace Foo { internal static class ExtensionClass { - public static bool ExtentionMethod2(this int x) + public static bool ExtensionMethod2(this int x) => true; } } @@ -1278,13 +1278,13 @@ public void M(int x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod1", + "ExtensionMethod1", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod2", + "ExtensionMethod2", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -1299,7 +1299,7 @@ namespace Foo { internal static class ExtensionClass { - public static bool ExtentionMethod1(this int x) + public static bool ExtensionMethod1(this int x) => true; } } @@ -1311,7 +1311,7 @@ namespace Foo { internal static class ExtensionClass { - public static bool ExtentionMethod2(this int x) + public static bool ExtensionMethod2(this int x) => true; } } @@ -1335,13 +1335,13 @@ public void M(int x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod1", + "ExtensionMethod1", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod2", + "ExtensionMethod2", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -1361,7 +1361,7 @@ namespace Foo { {{containerAccessibility}} static class ExtensionClass { - {{methodAccessibility}} static bool ExtentionMethod(this int x) + {{methodAccessibility}} static bool ExtensionMethod(this int x) => true; } } @@ -1387,7 +1387,7 @@ public void M(int x) { await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "Foo"); } @@ -1395,20 +1395,20 @@ await VerifyImportItemExistsAsync( { await VerifyImportItemIsAbsentAsync( markup, - "ExtentionMethod", + "ExtensionMethod", inlineDescription: "Foo"); } } [Theory] - [InlineData(ReferenceType.Project, "[]", "ExtentionMethod2")] - [InlineData(ReferenceType.Project, "[][]", "ExtentionMethod3")] - [InlineData(ReferenceType.Project, "[,]", "ExtentionMethod4")] - [InlineData(ReferenceType.Project, "[][,]", "ExtentionMethod5")] - [InlineData(ReferenceType.Metadata, "[]", "ExtentionMethod2")] - [InlineData(ReferenceType.Metadata, "[][]", "ExtentionMethod3")] - [InlineData(ReferenceType.Metadata, "[,]", "ExtentionMethod4")] - [InlineData(ReferenceType.Metadata, "[][,]", "ExtentionMethod5")] + [InlineData(ReferenceType.Project, "[]", "ExtensionMethod2")] + [InlineData(ReferenceType.Project, "[][]", "ExtensionMethod3")] + [InlineData(ReferenceType.Project, "[,]", "ExtensionMethod4")] + [InlineData(ReferenceType.Project, "[][,]", "ExtensionMethod5")] + [InlineData(ReferenceType.Metadata, "[]", "ExtensionMethod2")] + [InlineData(ReferenceType.Metadata, "[][]", "ExtensionMethod3")] + [InlineData(ReferenceType.Metadata, "[,]", "ExtensionMethod4")] + [InlineData(ReferenceType.Metadata, "[][,]", "ExtensionMethod5")] public async Task TestExtensionMethodsForSimpleArrayType(ReferenceType refType, string rank, string expectedName) { var refDoc = $$""" @@ -1418,19 +1418,19 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod1(this int x) + public static bool ExtensionMethod1(this int x) => true; - public static bool ExtentionMethod2(this int[] x) + public static bool ExtensionMethod2(this int[] x) => true; - public static bool ExtentionMethod3(this int[][] x) + public static bool ExtensionMethod3(this int[][] x) => true; - public static bool ExtentionMethod4(this int[,] x) + public static bool ExtensionMethod4(this int[,] x) => true; - public static bool ExtentionMethod5(this int[][,] x) + public static bool ExtensionMethod5(this int[][,] x) => true; } } @@ -1463,14 +1463,14 @@ await VerifyImportItemExistsAsync( } [Theory] - [InlineData(ReferenceType.Project, "[]", "ExtentionMethod2")] - [InlineData(ReferenceType.Project, "[][]", "ExtentionMethod3")] - [InlineData(ReferenceType.Project, "[,]", "ExtentionMethod4")] - [InlineData(ReferenceType.Project, "[][,]", "ExtentionMethod5")] - [InlineData(ReferenceType.Metadata, "[]", "ExtentionMethod2")] - [InlineData(ReferenceType.Metadata, "[][]", "ExtentionMethod3")] - [InlineData(ReferenceType.Metadata, "[,]", "ExtentionMethod4")] - [InlineData(ReferenceType.Metadata, "[][,]", "ExtentionMethod5")] + [InlineData(ReferenceType.Project, "[]", "ExtensionMethod2")] + [InlineData(ReferenceType.Project, "[][]", "ExtensionMethod3")] + [InlineData(ReferenceType.Project, "[,]", "ExtensionMethod4")] + [InlineData(ReferenceType.Project, "[][,]", "ExtensionMethod5")] + [InlineData(ReferenceType.Metadata, "[]", "ExtensionMethod2")] + [InlineData(ReferenceType.Metadata, "[][]", "ExtensionMethod3")] + [InlineData(ReferenceType.Metadata, "[,]", "ExtensionMethod4")] + [InlineData(ReferenceType.Metadata, "[][,]", "ExtensionMethod5")] public async Task TestExtensionMethodsForGenericArrayType(ReferenceType refType, string rank, string expectedName) { var refDoc = $$""" @@ -1480,19 +1480,19 @@ namespace Foo { public static class ExtensionClass { - public static bool ExtentionMethod1(this T x) + public static bool ExtensionMethod1(this T x) => true; - public static bool ExtentionMethod2(this T[] x) + public static bool ExtensionMethod2(this T[] x) => true; - public static bool ExtentionMethod3(this T[][] x) + public static bool ExtensionMethod3(this T[][] x) => true; - public static bool ExtentionMethod4(this T[,] x) + public static bool ExtensionMethod4(this T[,] x) => true; - public static bool ExtentionMethod5(this T[][,] x) + public static bool ExtensionMethod5(this T[][,] x) => true; } } @@ -1542,7 +1542,7 @@ namespace NS2 { public static class Extensions { - public static bool ExtentionMethod(this NS1.C1 c) => false; + public static bool ExtensionMethod(this NS1.C1 c) => false; } } """; @@ -1568,7 +1568,7 @@ public void M(T x) where T : C1 await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "NS2"); } @@ -1587,7 +1587,7 @@ namespace NS2 { public static class Extensions { - public static bool ExtentionMethod(this {{tupleType}}[] x) => false; + public static bool ExtensionMethod(this {{tupleType}}[] x) => false; } } """; @@ -1613,7 +1613,7 @@ public void M({{tupleType}}[] x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "NS2"); } @@ -1632,7 +1632,7 @@ namespace NS2 { public static class Extensions { - public static bool ExtentionMethod(this {{tupleType}} x) => false; + public static bool ExtensionMethod(this {{tupleType}} x) => false; } } """; @@ -1658,7 +1658,7 @@ public void M({{tupleType}} x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "NS2"); } @@ -1675,7 +1675,7 @@ namespace NS2 { public static class Extensions { - public static bool ExtentionMethod(this T t) => false; + public static bool ExtensionMethod(this T t) => false; } } """; @@ -1701,11 +1701,11 @@ public void M(int x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", displayTextSuffix: "<>", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "NS2", - expectedDescriptionOrNull: $"({CSharpFeaturesResources.extension}) bool int.ExtentionMethod()"); + expectedDescriptionOrNull: $"({CSharpFeaturesResources.extension}) bool int.ExtensionMethod()"); } [Theory] @@ -1720,12 +1720,12 @@ namespace NS2 { public static class Extensions { - public static bool ExtentionMethod(this int t) => false; - public static bool ExtentionMethod(this int t, int a) => false; - public static bool ExtentionMethod(this int t, int a, int b) => false; - public static bool ExtentionMethod(this int t, T a) => false; - public static bool ExtentionMethod(this int t, T a, T b) => false; - public static bool ExtentionMethod(this int t, T1 a, T2 b) => false; + public static bool ExtensionMethod(this int t) => false; + public static bool ExtensionMethod(this int t, int a) => false; + public static bool ExtensionMethod(this int t, int a, int b) => false; + public static bool ExtensionMethod(this int t, T a) => false; + public static bool ExtensionMethod(this int t, T a, T b) => false; + public static bool ExtensionMethod(this int t, T1 a, T2 b) => false; } } """; @@ -1751,18 +1751,18 @@ public void M(int x) await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "NS2", - expectedDescriptionOrNull: $"({CSharpFeaturesResources.extension}) bool int.ExtentionMethod() (+{NonBreakingSpaceString}2{NonBreakingSpaceString}{FeaturesResources.overloads_})"); + expectedDescriptionOrNull: $"({CSharpFeaturesResources.extension}) bool int.ExtensionMethod() (+{NonBreakingSpaceString}2{NonBreakingSpaceString}{FeaturesResources.overloads_})"); await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", displayTextSuffix: "<>", glyph: Glyph.ExtensionMethodPublic, inlineDescription: "NS2", - expectedDescriptionOrNull: $"({CSharpFeaturesResources.extension}) bool int.ExtentionMethod(T a) (+{NonBreakingSpaceString}2{NonBreakingSpaceString}{FeaturesResources.generic_overloads})"); + expectedDescriptionOrNull: $"({CSharpFeaturesResources.extension}) bool int.ExtensionMethod(T a) (+{NonBreakingSpaceString}2{NonBreakingSpaceString}{FeaturesResources.generic_overloads})"); } [InlineData(ReferenceType.Project)] @@ -1997,9 +1997,9 @@ namespace NS2 { public static class Extensions { - public static int ExtentionMethod(this int t, int a) => 0; - public static int[] ExtentionMethod(this int t, int a, int b) => null; - public static string ExtentionMethod(this int t, int a, int b, int c) => false; + public static int ExtensionMethod(this int t, int a) => 0; + public static int[] ExtensionMethod(this int t, int a, int b) => null; + public static string ExtensionMethod(this int t, int a, int b, int c) => false; } } """; @@ -2028,12 +2028,12 @@ public void M(int x) if (matchTargetType) { expectedFilters.Add(FilterSet.TargetTypedFilter); - expectedDescription = $"({CSharpFeaturesResources.extension}) {targetType} int.ExtentionMethod({expectedParameterList}) (+{NonBreakingSpaceString}2{NonBreakingSpaceString}{FeaturesResources.overloads_})"; + expectedDescription = $"({CSharpFeaturesResources.extension}) {targetType} int.ExtensionMethod({expectedParameterList}) (+{NonBreakingSpaceString}2{NonBreakingSpaceString}{FeaturesResources.overloads_})"; } await VerifyImportItemExistsAsync( markup, - "ExtentionMethod", + "ExtensionMethod", expectedFilters: expectedFilters, inlineDescription: "NS2", expectedDescriptionOrNull: expectedDescription); diff --git a/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.vb b/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.vb index 4f414a5a54be8..c70d8afc1640c 100644 --- a/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.vb +++ b/src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/ExtensionMethodImportCompletionProviderTests.vb @@ -200,7 +200,7 @@ Imports System.Runtime.CompilerServices Namespace NS Public Module Foo - Public Function ExtentionMethod(x As Bar) As Boolean + Public Function ExtensionMethod(x As Bar) As Boolean Return True End Function End Module @@ -220,7 +220,7 @@ Public Class Baz End Class]]>.Value Dim markup = GetMarkup(file2, file1, refType) - Await VerifyItemIsAbsentAsync(markup, "ExtentionMethod", inlineDescription:="NS") + Await VerifyItemIsAbsentAsync(markup, "ExtensionMethod", inlineDescription:="NS") End Function @@ -235,7 +235,7 @@ Imports System.Runtime.CompilerServices Namespace NS Public Module Foo - Public Function ExtentionMethod(x As Bar) As Boolean + Public Function ExtensionMethod(x As Bar) As Boolean Return True End Function End Module @@ -255,17 +255,17 @@ Public Class Baz End Class]]>.Value Dim markup = GetMarkup(file2, file1, refType) - Await VerifyItemIsAbsentAsync(markup, "ExtentionMethod", inlineDescription:="NS") + Await VerifyItemIsAbsentAsync(markup, "ExtensionMethod", inlineDescription:="NS") End Function - - - - - - - - + + + + + + + + Public Async Function TestExtensionMethodsForArrayType(refType As ReferenceType, rank As String, expectedName As String) As Task @@ -276,23 +276,23 @@ Imports System.Runtime.CompilerServices Namespace NS Public Module Foo - Public Function ExtentionMethod1(x As Integer) As Boolean + Public Function ExtensionMethod1(x As Integer) As Boolean Return True End Function - Public Function ExtentionMethod2(x As Integer()) As Boolean + Public Function ExtensionMethod2(x As Integer()) As Boolean Return True End Function - Public Function ExtentionMethod3(x As Integer()()) As Boolean + Public Function ExtensionMethod3(x As Integer()()) As Boolean Return True End Function - Public Function ExtentionMethod4(x As Integer(,)) As Boolean + Public Function ExtensionMethod4(x As Integer(,)) As Boolean Return True End Function - Public Function ExtentionMethod5(x As Integer()(,)) As Boolean + Public Function ExtensionMethod5(x As Integer()(,)) As Boolean Return True End Function End Module