209 references to TestAsync
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (152)
AddDocCommentNodesCodeFixProviderTests.cs (1)
31await TestAsync(initial, expected, parseOptions: parseOptions);
AddUsing\AddUsingTests.cs (7)
427await TestAsync( 1832await TestAsync( 2054await TestAsync( 2716await TestAsync(initialText, expectedText, parseOptions: options); 2737await TestAsync(initialText, expectedText, parseOptions: options); 2785await TestAsync(initialText, expectedText, parseOptions: options); 2823await TestAsync(initialText, expectedText, parseOptions: options);
AddUsing\AddUsingTests_ExtensionMethods.cs (13)
338await TestAsync( 388await TestAsync( 438await TestAsync( 488await TestAsync( 538await TestAsync( 588await TestAsync( 638await TestAsync( 688await TestAsync( 738await TestAsync( 788await TestAsync( 858await TestAsync( 1072await TestAsync( 1333await TestAsync(
CodeActions\ConvertLinq\ConvertForEachToLinqQueryTests.cs (1)
1726await TestAsync(source, queryOutput, parseOptions: null);
CodeActions\ConvertLinq\ConvertLinqQueryToForEachTests.cs (2)
2432await TestAsync(source, output, parseOptions: null); 2501await TestAsync(source, output, parseOptions: null);
CodeActions\ConvertLocalFunctionToMethod\ConvertLocalFunctionToMethodTests.cs (2)
342await TestAsync( 381await TestAsync(
CodeActions\EncapsulateField\EncapsulateFieldTests.cs (1)
47return TestAsync(initialMarkup, expectedMarkup, parseOptions, compilationOptions, index, options, testHost: host);
CodeActions\ExtractMethod\ExtractLocalFunctionTests.cs (11)
652await TestAsync( 757await TestAsync( 2043await TestAsync(""" 2075await TestAsync(""" 2106await TestAsync(""" 5410await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp9), index: 1); 5521await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5570await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5621await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5658await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex); 5748await TestAsync(code, expected, TestOptions.Regular, index: CodeActionIndex);
CodeActions\ExtractMethod\ExtractMethodTests.cs (5)
882await TestAsync( 984await TestAsync( 2357await TestAsync(""" 2389await TestAsync(""" 2420await TestAsync("""
CodeActions\InlineTemporary\InlineTemporaryTests.cs (8)
2612await TestAsync( 2647await TestAsync( 2679await TestAsync( 2709await TestAsync( 2738await TestAsync( 5683await TestAsync(code, expected, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5703await TestAsync(code, expected, TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp9)); 5709await TestAsync("""
CodeActions\IntroduceVariable\IntroduceVariableTests.cs (8)
2012await TestAsync( 5534await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 5786await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5819await TestAsync(code, expected, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 5853await TestAsync(code, expected, index: 1, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)); 6115await TestAsync( 6144await TestAsync( 6174await TestAsync(
CodeActions\ReplaceMethodWithProperty\ReplaceMethodWithPropertyTests.cs (1)
26await TestAsync(
Diagnostics\GenerateMethod\GenerateMethodTests.cs (18)
3961await TestAsync( 3985await TestAsync( 7800await TestAsync( 7828await TestAsync( 7856await TestAsync( 7884await TestAsync( 7912await TestAsync( 7942await TestAsync( 7973await TestAsync( 8003await TestAsync( 8118await TestAsync( 8148await TestAsync( 8238await TestAsync( 8272await TestAsync( 8306await TestAsync( 8340await TestAsync( 8374await TestAsync( 8408await TestAsync(
Diagnostics\GenerateType\GenerateTypeTests.cs (3)
1220await TestAsync( 1246await TestAsync( 1272await TestAsync(
Diagnostics\Suppression\SuppressionTests.cs (2)
382await TestAsync( 648await TestAsync(
FullyQualify\FullyQualifyTests.cs (1)
948await TestAsync(
GenerateConstructor\GenerateConstructorTests.cs (5)
3712await TestAsync( 3742await TestAsync( 3772await TestAsync( 3802await TestAsync( 5074await TestAsync("""
GenerateVariable\GenerateVariableTests.cs (22)
2301await TestAsync( 2542await TestAsync( 2694await TestAsync( 3127await TestAsync( 3230await TestAsync( 3265await TestAsync( 3300await TestAsync( 3335await TestAsync( 3370await TestAsync( 3405await TestAsync( 3440await TestAsync( 3475await TestAsync( 3510await TestAsync( 3545await TestAsync( 3586await TestAsync( 3627await TestAsync( 3668await TestAsync( 3709await TestAsync( 3750await TestAsync( 3791await TestAsync( 3832await TestAsync( 4790await TestAsync(
ImplementAbstractClass\ImplementAbstractClassTests.cs (1)
1730await TestAsync(
Interactive\CodeActions\InteractiveIntroduceVariableTests.cs (1)
26=> TestAsync(initial, expected, Options.Script, null, index);
MakeLocalFunctionStatic\MakeLocalFunctionStaticRefactoringTests.cs (1)
741await TestAsync("""
MakeLocalFunctionStaticTests.cs (2)
552await TestAsync(""" 568await TestAsync("""
MakeMethodAsynchronousTests.cs (1)
92await TestAsync(initial, expected, parseOptions: CSharpParseOptions.Default,
MoveDeclarationNearReference\MoveDeclarationNearReferenceTests.cs (13)
56await TestAsync( 103await TestAsync( 158await TestAsync( 217await TestAsync( 447await TestAsync( 591await TestAsync( 661await TestAsync( 730await TestAsync( 800await TestAsync( 1601await TestAsync( 1680await TestAsync( 1918await TestAsync( 1986await TestAsync(
RemoveDocCommentNodeCodeFixProviderTests.cs (1)
31await TestAsync(initial, expected, parseOptions: parseOptions);
RemoveUnusedLocalFunctionTests.cs (1)
149await TestAsync("""
RemoveUnusedVariable\RemoveUnusedVariableTests.cs (2)
775await TestAsync(""" 870await TestAsync(
SimplifyTypeNames\SimplifyTypeNamesTests.cs (6)
3741await TestAsync(source, 5041await TestAsync( 5074await TestAsync( 5107await TestAsync( 5135await TestAsync( 5163await TestAsync(
UpgradeProjectTests.cs (1)
57await TestAsync(initialMarkup, initialMarkup, parseOptions); // no change to markup
UseAutoPropertyTests.cs (1)
429await TestAsync(
UseExpressionBody\Refactoring\UseExpressionBodyForPropertiesRefactoringTests.cs (1)
294await TestAsync(
UseImplicitTypeTests.cs (2)
477await TestAsync( 3310await TestAsync(
UseInferredMemberNameTests.cs (4)
35await TestAsync( 109await TestAsync( 137await TestAsync( 179await TestAsync(
UseThrowExpressionTests.cs (3)
603await TestAsync( 623await TestAsync( 659await TestAsync(
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Diagnostics\AbstractSuppressionDiagnosticTest.cs (1)
38=> TestAsync(initial, expected, parseOptions: null, index: CodeActionIndex);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (56)
CodeActions\AbstractVisualBasicCodeActionTest.vb (2)
33Await MyBase.TestAsync(initialMarkupStr, expectedStr, parseOptions:=_compilationOptions.ParseOptions, compilationOptions:=_compilationOptions, index:=index) 35Await MyBase.TestAsync(initialMarkupStr, expectedStr, parseOptions:=parseOptions, compilationOptions:=_compilationOptions, index:=index)
CodeActions\ExtractMethod\ExtractMethodTests.vb (2)
567Await TestAsync( 599Await TestAsync(
CodeActions\IntroduceVariable\IntroduceVariableTests.vb (7)
1051Await TestAsync( 1907Await TestAsync( 1925Await TestAsync( 2724Await TestAsync(code, expected, parseOptions:=TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)) 2748Await TestAsync(code, expected, parseOptions:=TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)) 2774Await TestAsync(code, expected, index:=1, 2821Await TestAsync(code, expected, parseOptions:=TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest))
Diagnostics\AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest.vb (1)
35Await MyBase.TestAsync(initialMarkupStr, expectedStr,
Diagnostics\AddImport\AddImportTests.vb (12)
1186Await TestAsync( 1206Await TestAsync( 1261Await TestAsync( 1319Await TestAsync( 1356Await TestAsync( 1841Await TestAsync( 1883Await TestAsync( 1925Await TestAsync( 1967Await TestAsync( 2009Await TestAsync( 2051Await TestAsync( 2107Await TestAsync(
Diagnostics\GenerateMethod\GenerateMethodTests.vb (5)
1140Await TestAsync( 1571Await TestAsync( 1593Await TestAsync( 1615Await TestAsync( 1641Await TestAsync(
Diagnostics\GenerateType\GenerateTypeTests.vb (3)
113Await TestAsync( 446Await TestAsync( 746Await TestAsync(
Diagnostics\GenerateVariable\GenerateVariableTests.vb (4)
974Await TestAsync( 1004Await TestAsync( 1347Await TestAsync( 1357Await TestAsync(
Diagnostics\Suppression\SuppressionTests.vb (6)
578Await TestAsync(source.Value, expected, enableDocCommentProcessing) 605Await TestAsync(source.Value, expected, VisualBasicParseOptions.Default.WithDocumentationMode(DocumentationMode.Diagnose)) 615Await TestAsync(source.Value, expected, VisualBasicParseOptions.Default.WithDocumentationMode(DocumentationMode.Diagnose)) 635Await TestAsync(source.Value, expected, VisualBasicParseOptions.Default.WithDocumentationMode(DocumentationMode.Diagnose)) 651Await TestAsync(source.Value, expected, VisualBasicParseOptions.Default.WithDocumentationMode(DocumentationMode.Diagnose)) 666Await TestAsync(source.Value, expected, VisualBasicParseOptions.Default.WithDocumentationMode(DocumentationMode.Diagnose))
GenerateConstructor\GenerateConstructorTests.vb (1)
1952Await TestAsync(
ImplementInterface\ImplementInterfaceTests.vb (2)
804Await TestAsync( 1813Await TestAsync(
MoveDeclarationNearReference\MoveDeclarationNearReferenceTests.vb (1)
242Await TestAsync(
RemoveDocCommentNodeCodeFixProviderTests.vb (1)
20Await TestAsync(initial, expected, parseOptions:=parseOptions)
RemoveUnnecessaryImportsTests.vb (2)
23Await TestAsync( 1289Await TestAsync(
SimplifyTypeNames\SimplifyTypeNamesTests.vb (2)
964Await TestAsync( 1561Await TestAsync(
UseInferredMemberNameTests.vb (5)
25Await TestAsync( 74Await TestAsync( 95Await TestAsync( 118Await TestAsync( 152Await TestAsync(