206 references to VisualBasicCodeFixVerifier
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (206)
src\Analyzers\VisualBasic\Tests\AddAccessibilityModifiers\AddAccessibilityModifiersTests.vb (9)
7
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
17
VerifyVB
.VerifyStandardProperty([property])
22
Await
VerifyVB
.VerifyCodeFixAsync(
420
Dim test As New
VerifyVB
.Test()
436
Await
VerifyVB
.VerifyCodeFixAsync(source, source)
441
Await
VerifyVB
.VerifyCodeFixAsync("
455
Await
VerifyVB
.VerifyCodeFixAsync("
483
Dim test As New
VerifyVB
.Test With {
502
Dim test As New
VerifyVB
.Test With {
src\Analyzers\VisualBasic\Tests\AddRequiredParentheses\AddRequiredParenthesesTests.vb (3)
11
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of Microsoft.CodeAnalysis.VisualBasic.AddRequiredParentheses.VisualBasicAddRequiredParenthesesForBinaryLikeExpressionDiagnosticAnalyzer, Microsoft.CodeAnalysis.AddRequiredParentheses.AddRequiredParenthesesCodeFixProvider)
35
Await New
VerifyVB
.Test With
44
Await New
VerifyVB
.Test With
src\Analyzers\VisualBasic\Tests\ConflictMarkerResolution\ConflictMarkerResolutionTests.vb (13)
6
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
49
Await New
VerifyVB
.Test With
94
Await New
VerifyVB
.Test With
145
Await New
VerifyVB
.Test With
189
Await New
VerifyVB
.Test With
233
Await New
VerifyVB
.Test With
281
Await New
VerifyVB
.Test With
329
Await New
VerifyVB
.Test With
377
Await New
VerifyVB
.Test With
431
Await New
VerifyVB
.Test With
481
Await New
VerifyVB
.Test With
531
Await New
VerifyVB
.Test With
585
Await New
VerifyVB
.Test With
src\Analyzers\VisualBasic\Tests\ConvertGetTypeToNameOf\ConvertGetTypeToNameOfTests.vb (7)
5
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
27
Await
VerifyVB
.VerifyCodeFixAsync(text, expected)
46
Await
VerifyVB
.VerifyCodeFixAsync(text, expected)
69
Await
VerifyVB
.VerifyCodeFixAsync(text, expected)
98
Await
VerifyVB
.VerifyCodeFixAsync(text, expected)
113
Await
VerifyVB
.VerifyCodeFixAsync(text, text)
137
Await
VerifyVB
.VerifyCodeFixAsync(text, expected)
src\Analyzers\VisualBasic\Tests\FileHeaders\FileHeaderTests.vb (16)
6
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
36
Await New
VerifyVB
.Test With
66
Dim test As
VerifyVB
.Test = New
VerifyVB
.Test With
97
Await New
VerifyVB
.Test With
126
Await New
VerifyVB
.Test With
155
Await New
VerifyVB
.Test With
184
Await New
VerifyVB
.Test With
205
Await New
VerifyVB
.Test With
234
Await New
VerifyVB
.Test With
261
Await New
VerifyVB
.Test With
287
Await New
VerifyVB
.Test With
324
Await New
VerifyVB
.Test With
354
Await New
VerifyVB
.Test With
385
Await New
VerifyVB
.Test With
411
Await New
VerifyVB
.Test With
src\Analyzers\VisualBasic\Tests\Iterator\IteratorTests.vb (6)
11
Imports VerifyConvertToIterator = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of Microsoft.CodeAnalysis.Testing.EmptyDiagnosticAnalyzer, Microsoft.CodeAnalysis.VisualBasic.CodeFixes.Iterator.VisualBasicConvertToIteratorCodeFixProvider)
12
Imports VerifyConvertToYield = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of Microsoft.CodeAnalysis.Testing.EmptyDiagnosticAnalyzer, Microsoft.CodeAnalysis.VisualBasic.CodeFixes.Iterator.VisualBasicChangeToYieldCodeFixProvider)
18
Await New
VerifyConvertToIterator
.Test With
27
Await New
VerifyConvertToIterator
.Test With
135
Await New
VerifyConvertToYield
.Test With
143
Await New
VerifyConvertToYield
.Test With
src\Analyzers\VisualBasic\Tests\MakeMethodSynchronous\MakeMethodSynchronousTests.vb (17)
6
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(
15
Await
VerifyVB
.VerifyCodeFixAsync(
32
Await
VerifyVB
.VerifyCodeFixAsync(
49
Await
VerifyVB
.VerifyCodeFixAsync(
66
Await
VerifyVB
.VerifyCodeFixAsync(
83
Await
VerifyVB
.VerifyCodeFixAsync(
100
Await
VerifyVB
.VerifyCodeFixAsync(
125
Await
VerifyVB
.VerifyCodeFixAsync(
169
Dim test = New
VerifyVB
.Test()
179
Await
VerifyVB
.VerifyCodeFixAsync(
231
Dim test = New
VerifyVB
.Test()
264
Dim test = New
VerifyVB
.Test()
297
Dim test = New
VerifyVB
.Test()
330
Dim test = New
VerifyVB
.Test()
363
Dim test = New
VerifyVB
.Test()
396
Dim test = New
VerifyVB
.Test()
429
Dim test = New
VerifyVB
.Test()
src\Analyzers\VisualBasic\Tests\MakeTypePartial\MakeTypePartialTests.vb (5)
5
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
34
Dim test = New
VerifyVB
.Test With {
68
Dim test = New
VerifyVB
.Test With {
110
Dim test = New
VerifyVB
.Test With {
140
Dim test = New
VerifyVB
.Test With {
src\Analyzers\VisualBasic\Tests\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementTests.vb (3)
7
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
14
Dim test = New
VerifyVB
.Test() With {
197
Await New
VerifyVB
.Test() With {
src\Analyzers\VisualBasic\Tests\NewLines\MultipleBlankLines\MultipleBlankLinesTests.vb (3)
6
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
13
Dim test = New
VerifyVB
.Test() With
52
Await New
VerifyVB
.Test() With
src\Analyzers\VisualBasic\Tests\RemoveAsyncModifier\RemoveAsyncModifierTests.vb (12)
6
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
16
Await
VerifyVB
.VerifyCodeFixAsync(
44
Await
VerifyVB
.VerifyCodeFixAsync(
67
Await
VerifyVB
.VerifyCodeFixAsync(
100
Await
VerifyVB
.VerifyCodeFixAsync(
119
Await
VerifyVB
.VerifyCodeFixAsync(
143
Await
VerifyVB
.VerifyCodeFixAsync(
167
Await
VerifyVB
.VerifyCodeFixAsync(
195
Await
VerifyVB
.VerifyCodeFixAsync(
239
Dim test = New
VerifyVB
.Test()
272
Dim test = New
VerifyVB
.Test()
301
Dim test = New
VerifyVB
.Test()
src\Analyzers\VisualBasic\Tests\RemoveRedundantEquality\RemoveRedundantEqualityTests.vb (11)
5
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
27
Await
VerifyVB
.VerifyCodeFixAsync(code, fixedCode)
32
Await
VerifyVB
.VerifyCodeFixAsync("
63
Await
VerifyVB
.VerifyCodeFixAsync(code, fixedCode)
68
Await
VerifyVB
.VerifyCodeFixAsync("
92
Await
VerifyVB
.VerifyAnalyzerAsync(code)
106
Await
VerifyVB
.VerifyAnalyzerAsync(code)
126
Await
VerifyVB
.VerifyAnalyzerAsync(code)
145
Await
VerifyVB
.VerifyCodeFixAsync(code, fixedCode)
164
Await
VerifyVB
.VerifyCodeFixAsync(code, fixedCode)
199
Await
VerifyVB
.VerifyCodeFixAsync(code, fixedCode)
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryByVal\RemoveUnnecessaryByValTests.vb (2)
5
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
13
Await New
VerifyVB
.Test With
src\Analyzers\VisualBasic\Tests\RemoveUnnecessarySuppressions\RemoveUnnecessarySuppressionsTests.vb (6)
6
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
17
VerifyVB
.VerifyStandardProperty([property])
54
Await
VerifyVB
.VerifyCodeFixAsync(input, input)
106
Await
VerifyVB
.VerifyCodeFixAsync(input, fixedCode)
137
Await
VerifyVB
.VerifyCodeFixAsync(input, fixedCode)
151
Await
VerifyVB
.VerifyCodeFixAsync(input, input)
src\Analyzers\VisualBasic\Tests\SimplifyLinqExpression\VisualBasicSimplifyLinqExpressionFixAllTests.vb (3)
45
Await
VisualBasicCodeFixVerifier
(Of VisualBasicSimplifyLinqExpressionDiagnosticAnalyzer, SimplifyLinqExpressionCodeFixProvider).VerifyCodeFixAsync(testCode, fixedCode)
82
Await
VisualBasicCodeFixVerifier
(Of VisualBasicSimplifyLinqExpressionDiagnosticAnalyzer, SimplifyLinqExpressionCodeFixProvider).VerifyCodeFixAsync(testCode, fixedCode)
119
Await
VisualBasicCodeFixVerifier
(Of VisualBasicSimplifyLinqExpressionDiagnosticAnalyzer, SimplifyLinqExpressionCodeFixProvider).VerifyCodeFixAsync(testCode, fixedCode)
src\Analyzers\VisualBasic\Tests\SimplifyLinqExpression\VisualBasicSimplifyLinqExpressionTests.vb (12)
8
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
48
Await
VerifyVB
.VerifyCodeFixAsync(testCode, fixedCode)
73
Await
VerifyVB
.VerifyAnalyzerAsync(testCode)
108
Await
VerifyVB
.VerifyCodeFixAsync(testCode, fixedCode)
133
Await
VerifyVB
.VerifyAnalyzerAsync(testCode)
174
Await
VerifyVB
.VerifyCodeFixAsync(testCode, fixedCode)
199
Await
VerifyVB
.VerifyAnalyzerAsync(testCode)
244
Await
VerifyVB
.VerifyCodeFixAsync(testCode, fixedCode)
280
Await
VerifyVB
.VerifyCodeFixAsync(testCode, fixedCode)
304
Await
VerifyVB
.VerifyAnalyzerAsync(testCode)
320
Await
VerifyVB
.VerifyAnalyzerAsync(testCode)
349
Await
VerifyVB
.VerifyAnalyzerAsync(testCode)
src\Analyzers\VisualBasic\Tests\SimplifyObjectCreation\SimplifyObjectCreationTests.vb (11)
6
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(
14
Await
VerifyVB
.VerifyCodeFixAsync("
49
Dim test = New
VerifyVB
.Test With
68
Dim test = New
VerifyVB
.Test With
79
Await
VerifyVB
.VerifyCodeFixAsync("
98
Await
VerifyVB
.VerifyCodeFixAsync("
117
Await
VerifyVB
.VerifyCodeFixAsync("
136
Await
VerifyVB
.VerifyCodeFixAsync("
159
Await
VerifyVB
.VerifyCodeFixAsync("
182
Await
VerifyVB
.VerifyAnalyzerAsync("
197
Await
VerifyVB
.VerifyAnalyzerAsync("
src\Analyzers\VisualBasic\Tests\UpdateLegacySuppressions\UpdateLegacySuppressionsTests.vb (4)
7
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
18
VerifyVB
.VerifyStandardProperty([property])
52
Dim expectedDiagnostic =
VerifyVB
.Diagnostic(AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.LegacyFormatTargetDescriptor).
78
Await
VerifyVB
.VerifyCodeFixAsync(input, expectedDiagnostic, fixedCode)
src\Analyzers\VisualBasic\Tests\UseCoalesceExpression\UseCoalesceExpressionForIfNullStatementCheckTests.vb (13)
11
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
35
Await New
VerifyVB
.Test() With {
43
Await New
VerifyVB
.Test With {
89
Await New
VerifyVB
.Test With {
112
Await New
VerifyVB
.Test With {
135
Await New
VerifyVB
.Test With {
160
Await New
VerifyVB
.Test With {
184
Await New
VerifyVB
.Test With {
206
Await New
VerifyVB
.Test With {
229
Await New
VerifyVB
.Test With {
252
Await New
VerifyVB
.Test With {
260
Await New
VerifyVB
.Test With {
301
Await New
VerifyVB
.Test With {
src\Analyzers\VisualBasic\Tests\UseExplicitTupleName\UseExplicitTupleNameTests.vb (9)
5
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
14
Await
VerifyVB
.VerifyCodeFixAsync("
31
Await
VerifyVB
.VerifyCodeFixAsync("
54
Await
VerifyVB
.VerifyCodeFixAsync("
79
Await
VerifyVB
.VerifyCodeFixAsync(code, code)
92
Await
VerifyVB
.VerifyCodeFixAsync(code, code)
105
Await
VerifyVB
.VerifyCodeFixAsync(code, code)
110
Await
VerifyVB
.VerifyCodeFixAsync("
129
Await
VerifyVB
.VerifyCodeFixAsync("
src\Analyzers\VisualBasic\Tests\UseIsNotExpression\UseIsNotExpressionTests.vb (4)
5
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
14
Await New
VerifyVB
.Test With {
34
Await New
VerifyVB
.Test With {
54
Await New
VerifyVB
.Test With {
src\Analyzers\VisualBasic\Tests\UseObjectInitializer\UseObjectInitializerTests.vb (37)
5
Imports VerifyVB = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.
VisualBasicCodeFixVerifier
(Of
13
Await New
VerifyVB
.Test With {
38
Dim test = New
VerifyVB
.Test With {
45
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
69
Dim test = New
VerifyVB
.Test With {
76
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
102
Dim test = New
VerifyVB
.Test With {
109
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
135
Dim test = New
VerifyVB
.Test With {
142
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
174
Dim test = New
VerifyVB
.Test With {
181
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3))
209
Dim test = New
VerifyVB
.Test With {
216
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
245
Dim test = New
VerifyVB
.Test With {
252
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
283
Dim test = New
VerifyVB
.Test With {
290
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
340
Dim test = New
VerifyVB
.Test With {
347
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
388
Dim test = New
VerifyVB
.Test With {
395
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3))
399
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(4).WithLocation(5).WithLocation(6).WithLocation(7))
427
Dim test = New
VerifyVB
.Test With {
434
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3))
479
Dim test = New
VerifyVB
.Test With {
486
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3))
534
Dim test = New
VerifyVB
.Test With {
541
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2).WithLocation(3))
573
Dim test = New
VerifyVB
.Test With {
580
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
681
Dim test = New
VerifyVB
.Test With {
688
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
738
Dim test = New
VerifyVB
.Test With {
745
VerifyVB
.Diagnostic().WithSeverity(DiagnosticSeverity.Info).WithLocation(0).WithLocation(1).WithLocation(2))
783
Await New
VerifyVB
.Test With {
824
Await New
VerifyVB
.Test With {