445 references to Regular
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
Microsoft.CodeAnalysis.CSharp (17)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (122)
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (2)
841await BaseVerifyWorkerAsync(code, position, "@class()", "void Base.@class()", SourceCodeKind.Regular, false, false, null, null, null, null, null, null);
859await BaseVerifyWorkerAsync(code, position, "@class", "int Base.@class { get; set; }", SourceCodeKind.Regular, false, false, null, null, null, null, null, null);
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (13)
37=> await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
41=> await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, MockSnippetInfoService.SnippetTitle + Environment.NewLine + MockSnippetInfoService.SnippetDescription + Environment.NewLine + string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, MockSnippetInfoService.SnippetShortcut), SourceCodeKind.Regular);
45=> await VerifyItemExistsAsync(@"namespace NS { $$ }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
49=> await VerifyItemExistsAsync(@"namespace NS { class C { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
53=> await VerifyItemExistsAsync(@"namespace NS { class C { void M() { $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
57=> await VerifyItemIsAbsentAsync(@"namespace NS { class C { void M() { int $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
61=> await VerifyItemIsAbsentAsync(@"namespace NS { enum E { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
65=> await VerifyItemExistsAsync(@"namespace NS { class C { void M() { bool b = true && $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
69=> await VerifyItemExistsAsync(@"#$$", MockSnippetInfoService.PreProcessorSnippetShortcut[1..], sourceCodeKind: SourceCodeKind.Regular);
73=> await VerifyItemIsAbsentAsync(@"#$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
77=> await VerifyItemIsAbsentAsync(@"#region $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
81=> await VerifyItemExistsAsync(@"#r$$", MockSnippetInfoService.PreProcessorSnippetShortcut[1..], sourceCodeKind: SourceCodeKind.Regular);
85=> await VerifyItemIsAbsentAsync(@"#line (1, 2) - (3, 4) $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (65)
30[InlineData(SourceCodeKind.Regular)]
39[InlineData(SourceCodeKind.Regular)]
365await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
377await VerifyItemExistsAsync(source, "Runtime", sourceCodeKind: SourceCodeKind.Regular);
387await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
388await VerifyItemIsAbsentAsync(source, "String", sourceCodeKind: SourceCodeKind.Regular);
398await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
399await VerifyItemIsAbsentAsync(source, "String", sourceCodeKind: SourceCodeKind.Regular);
410await VerifyItemExistsAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
422await VerifyNoItemsExistAsync(source, sourceCodeKind: SourceCodeKind.Regular);
436await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
437await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
445await VerifyItemIsAbsentAsync(source, "NS", sourceCodeKind: SourceCodeKind.Regular);
460await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
461await VerifyItemIsAbsentAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
478await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
479await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
487await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
488await VerifyItemIsAbsentAsync(source, "Runtime", sourceCodeKind: SourceCodeKind.Regular);
517await VerifyItemIsAbsentAsync(source, "C1", sourceCodeKind: SourceCodeKind.Regular);
518await VerifyItemIsAbsentAsync(source, "C2", sourceCodeKind: SourceCodeKind.Regular);
519await VerifyItemIsAbsentAsync(source, "C3", sourceCodeKind: SourceCodeKind.Regular);
521await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
525await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
533await VerifyNoItemsExistAsync(source, sourceCodeKind: SourceCodeKind.Regular);
544await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
555await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
569await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
570await VerifyItemIsAbsentAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
571await VerifyItemExistsAsync(source, "C", sourceCodeKind: SourceCodeKind.Regular);
584await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
585await VerifyItemIsAbsentAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
600await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
601await VerifyItemExistsAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
609await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
610await VerifyItemIsAbsentAsync(source, "Runtime", sourceCodeKind: SourceCodeKind.Regular);
618await VerifyItemExistsAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
630await VerifyItemIsAbsentAsync(source, "System", sourceCodeKind: SourceCodeKind.Regular);
631await VerifyItemIsAbsentAsync(source, "Runtime", sourceCodeKind: SourceCodeKind.Regular);
652await VerifyItemIsAbsentAsync(source, "A", sourceCodeKind: SourceCodeKind.Regular);
653await VerifyItemIsAbsentAsync(source, "B", sourceCodeKind: SourceCodeKind.Regular);
654await VerifyItemIsAbsentAsync(source, "C", sourceCodeKind: SourceCodeKind.Regular);
664await VerifyItemIsAbsentAsync(source, "D1", sourceCodeKind: SourceCodeKind.Regular);
665await VerifyItemIsAbsentAsync(source, "D2", sourceCodeKind: SourceCodeKind.Regular);
666await VerifyItemIsAbsentAsync(source, "D3", sourceCodeKind: SourceCodeKind.Regular);
1547await VerifyItemExistsAsync(prefix + "$$", "args", sourceCodeKind: SourceCodeKind.Regular);
1569", "args", sourceCodeKind: SourceCodeKind.Regular);
1581" + prefix + "$$", "args", sourceCodeKind: SourceCodeKind.Regular);
1595", "args", sourceCodeKind: SourceCodeKind.Regular);
1605await VerifyItemExistsAsync("call(" + prefix + "$$)", "args", sourceCodeKind: SourceCodeKind.Regular);
1611=> await VerifyItemIsAbsentAsync(@"$$", "args", sourceCodeKind: SourceCodeKind.Regular);
1619$$", "args", sourceCodeKind: SourceCodeKind.Regular);
1626$$", "args", sourceCodeKind: SourceCodeKind.Regular);
1630=> await VerifyItemExistsAsync(@"string first = $$", "args", sourceCodeKind: SourceCodeKind.Regular);
2574await VerifyItemExistsAsync(markup, "Q", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Regular);
2575await VerifyItemIsAbsentAsync(markup, "R", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Regular);
3141await VerifyItemExistsAsync(markup, "My", sourceCodeKind: SourceCodeKind.Regular);
3142await VerifyItemIsAbsentAsync(markup, "MyAttribute", sourceCodeKind: SourceCodeKind.Regular);
3152await VerifyItemExistsAsync(markup, "namespaceAttribute", sourceCodeKind: SourceCodeKind.Regular);
3153await VerifyItemIsAbsentAsync(markup, "namespace", sourceCodeKind: SourceCodeKind.Regular);
3154await VerifyItemIsAbsentAsync(markup, "@namespace", sourceCodeKind: SourceCodeKind.Regular);
7474await VerifyItemExistsAsync(markup, "ForSchemaSet", displayTextSuffix: "<>", sourceCodeKind: SourceCodeKind.Regular);
8573await VerifyItemExistsAsync(markup, "Class1", displayTextSuffix: "<>", sourceCodeKind: SourceCodeKind.Regular);
8598await VerifyItemExistsAsync(markup, "Class1", displayTextSuffix: "<>", sourceCodeKind: SourceCodeKind.Regular);
10599await VerifyItemExistsAsync(markup, "Length", sourceCodeKind: SourceCodeKind.Regular);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (167)
Recommendations\EventKeywordRecommenderTests.cs (16)
70=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"$$");
75await VerifyAbsenceAsync(SourceCodeKind.Regular, @"extern alias Goo;
89await VerifyAbsenceAsync(SourceCodeKind.Regular, @"using Goo;
103await VerifyAbsenceAsync(SourceCodeKind.Regular, @"global using Goo;
117await VerifyAbsenceAsync(SourceCodeKind.Regular, @"namespace N {}
124await VerifyAbsenceAsync(SourceCodeKind.Regular, @"class C {}
131await VerifyAbsenceAsync(SourceCodeKind.Regular, @"delegate void Goo();
165await VerifyAbsenceAsync(SourceCodeKind.Regular,
181await VerifyAbsenceAsync(SourceCodeKind.Regular,
197await VerifyAbsenceAsync(SourceCodeKind.Regular, @"[assembly: goo]
211await VerifyAbsenceAsync(SourceCodeKind.Regular, @"[goo]
275=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"internal $$");
291=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"public $$");
308await VerifyAbsenceAsync(SourceCodeKind.Regular,
364=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static $$");
380=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static public $$");
Recommendations\NamespaceKeywordRecommenderTests.cs (19)
62await VerifyKeywordAsync(SourceCodeKind.Regular,
80await VerifyKeywordAsync(SourceCodeKind.Regular,
88await VerifyAbsenceAsync(SourceCodeKind.Regular,
96await VerifyAbsenceAsync(SourceCodeKind.Regular,
105await VerifyKeywordAsync(SourceCodeKind.Regular,
124await VerifyKeywordAsync(SourceCodeKind.Regular,
140await VerifyAbsenceAsync(SourceCodeKind.Regular,
149await VerifyKeywordAsync(SourceCodeKind.Regular,
160await VerifyKeywordAsync(SourceCodeKind.Regular,
168await VerifyKeywordAsync(SourceCodeKind.Regular,
192await VerifyKeywordAsync(SourceCodeKind.Regular,
208await VerifyKeywordAsync(SourceCodeKind.Regular,
224await VerifyKeywordAsync(SourceCodeKind.Regular,
240await VerifyKeywordAsync(SourceCodeKind.Regular,
273await VerifyKeywordAsync(SourceCodeKind.Regular,
296await VerifyKeywordAsync(SourceCodeKind.Regular,
322await VerifyKeywordAsync(SourceCodeKind.Regular,
397await VerifyKeywordAsync(SourceCodeKind.Regular,
430await VerifyKeywordAsync(SourceCodeKind.Regular,
Recommendations\PrivateKeywordRecommenderTests.cs (13)
69=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"$$");
74await VerifyAbsenceAsync(SourceCodeKind.Regular, @"extern alias Goo;
88await VerifyAbsenceAsync(SourceCodeKind.Regular, @"using Goo;
102await VerifyAbsenceAsync(SourceCodeKind.Regular, @"global using Goo;
116await VerifyAbsenceAsync(SourceCodeKind.Regular, @"namespace N {}
123await VerifyAbsenceAsync(SourceCodeKind.Regular,
131await VerifyAbsenceAsync(SourceCodeKind.Regular, @"class C {}
138await VerifyAbsenceAsync(SourceCodeKind.Regular, @"delegate void Goo();
172await VerifyAbsenceAsync(SourceCodeKind.Regular, @"$$
186await VerifyAbsenceAsync(SourceCodeKind.Regular,
202await VerifyAbsenceAsync(SourceCodeKind.Regular, @"[assembly: goo]
216await VerifyAbsenceAsync(SourceCodeKind.Regular, @"[goo]
323=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static $$");
Recommendations\StructKeywordRecommenderTests.cs (12)
179await VerifyAbsenceAsync(SourceCodeKind.Regular,
187await VerifyAbsenceAsync(SourceCodeKind.Regular,
195await VerifyKeywordAsync(SourceCodeKind.Regular,
202await VerifyKeywordAsync(SourceCodeKind.Regular,
209await VerifyKeywordAsync(SourceCodeKind.Regular,
216await VerifyKeywordAsync(SourceCodeKind.Regular,
223await VerifyKeywordAsync(SourceCodeKind.Regular,
230await VerifyKeywordAsync(SourceCodeKind.Regular,
237await VerifyAbsenceAsync(SourceCodeKind.Regular,
244await VerifyAbsenceAsync(SourceCodeKind.Regular,
340await VerifyKeywordAsync(SourceCodeKind.Regular,
361await VerifyKeywordAsync(SourceCodeKind.Regular,
Recommendations\VolatileKeywordRecommenderTests.cs (16)
69=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"$$");
74await VerifyAbsenceAsync(SourceCodeKind.Regular, @"extern alias Goo;
88await VerifyAbsenceAsync(SourceCodeKind.Regular, @"using Goo;
102await VerifyAbsenceAsync(SourceCodeKind.Regular, @"global using Goo;
116await VerifyAbsenceAsync(SourceCodeKind.Regular, @"namespace N {}
123await VerifyAbsenceAsync(SourceCodeKind.Regular, @"class C {}
130await VerifyAbsenceAsync(SourceCodeKind.Regular, @"delegate void Goo();
164await VerifyAbsenceAsync(SourceCodeKind.Regular,
180await VerifyAbsenceAsync(SourceCodeKind.Regular,
196await VerifyAbsenceAsync(SourceCodeKind.Regular, @"[assembly: goo]
210await VerifyAbsenceAsync(SourceCodeKind.Regular, @"[goo]
270=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"internal $$");
286=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"public $$");
303await VerifyAbsenceAsync(SourceCodeKind.Regular,
351=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static $$");
367=> await VerifyAbsenceAsync(SourceCodeKind.Regular, @"static public $$");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (23)
Completion\AbstractCompletionProviderTests.cs (6)
114=> document.SourceCodeKind == SourceCodeKind.Regular ? ImmutableHashSet<string>.Empty : ImmutableHashSet.Create(PredefinedInteractiveTextViewRoles.InteractiveTextViewRole);
245foreach (var sourceKind in sourceCodeKind.HasValue ? new[] { sourceCodeKind.Value } : new[] { SourceCodeKind.Regular, SourceCodeKind.Script })
294await VerifyCustomCommitProviderWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, SourceCodeKind.Regular, commitChar);
321await VerifyProviderCommitWorkerAsync(code, position, itemToCommit, expectedCodeAfterCommit, commitChar, SourceCodeKind.Regular);
1027SourceCodeKind sourceCodeKind = SourceCodeKind.Regular,
1087protected async Task VerifyCommitCharactersAsync(string initialMarkup, string textTypedSoFar, char[] validChars, char[] invalidChars = null, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (7)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (22)
Completion\CompletionProviders\OverrideCompletionProviderTests.vb (2)
568Await BaseVerifyWorkerAsync(code, position, "[Class]()", "Sub CBase.Class()", SourceCodeKind.Regular, False, False, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)
589SourceCodeKind.Regular, False, False, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)
Completion\CompletionProviders\PartialTypeCompletionProviderTests.vb (7)
67Await VerifyProviderCommitAsync(text.Value, "C(Of Bar)", expected.Value, "("c, SourceCodeKind.Regular)
101Await VerifyProviderCommitAsync(text.Value, "C(Of Bar)", expected.Value, Nothing, SourceCodeKind.Regular)
116Await VerifyProviderCommitAsync(text.Value, "C(Of T)", expected.Value, " "c, SourceCodeKind.Regular)
277Await VerifyProviderCommitAsync(text.Value, "Class", expected.Value, Nothing, SourceCodeKind.Regular)
292Await VerifyProviderCommitAsync(text.Value, "Class(Of T)", expected.Value, Nothing, SourceCodeKind.Regular)
307Await VerifyProviderCommitAsync(text.Value, "Class(Of T)", expected.Value, "("c, SourceCodeKind.Regular)
322Await VerifyProviderCommitAsync(text.Value, "G(Of Out T)", expected.Value, Nothing, SourceCodeKind.Regular)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces (14)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Microsoft.VisualStudio.LanguageServices (5)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
StackDepthTest (1)