From 9810d26ce84c52a5c70b50c548433118cb7aff92 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Mon, 27 Jan 2020 13:49:34 -0800 Subject: [PATCH] Fix VB tests --- .../Suppression/SuppressionTests.vb | 60 +++++++++++++------ 1 file changed, 43 insertions(+), 17 deletions(-) diff --git a/src/EditorFeatures/VisualBasicTest/Diagnostics/Suppression/SuppressionTests.vb b/src/EditorFeatures/VisualBasicTest/Diagnostics/Suppression/SuppressionTests.vb index fa77d148c63..b2acd4a94f3 100644 --- a/src/EditorFeatures/VisualBasicTest/Diagnostics/Suppression/SuppressionTests.vb +++ b/src/EditorFeatures/VisualBasicTest/Diagnostics/Suppression/SuppressionTests.vb @@ -988,7 +988,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1026,7 +1028,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestInRegularAndScriptAsync(source.Value, expected, index:=1) @@ -1068,7 +1072,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1112,7 +1118,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1156,7 +1164,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1204,7 +1214,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1256,7 +1268,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1306,7 +1320,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1346,7 +1362,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1402,7 +1420,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.Value, expected) @@ -1463,7 +1483,7 @@ End Class]]> ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - + ]]> @@ -1475,8 +1495,10 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. -"", Scope:=""type"", Target:=""Class1"")> - +Imports System.Diagnostics.CodeAnalysis + +"", Scope:=""type"", Target:=""Class1"")> + " Await TestAsync(source.ToString(), expected) @@ -1512,7 +1534,9 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - +Imports System.Diagnostics.CodeAnalysis + + " Await TestAsync(source.ToString(), expected) @@ -1544,7 +1568,7 @@ End Class ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. - + ]]> @@ -1556,8 +1580,10 @@ $"' This file is used by Code Analysis to maintain SuppressMessage ' Project-level suppressions either have no target or are given ' a specific target and scoped to a namespace, type, member, etc. -"", Scope:=""type"", Target:=""Class1"")> - +Imports System.Diagnostics.CodeAnalysis + +"", Scope:=""type"", Target:=""Class1"")> + " Await TestAsync(source.ToString(), expected) -- GitLab