47 references to ExplicitTypeForBuiltInTypesOnly
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (47)
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (47)
132await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 164await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 344await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 370await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 397await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 424await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 451await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 480await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 515await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 542await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 569await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 600await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 633await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 664await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 695await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 726await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 755await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 788await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 821await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 852await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 881await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 910await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 945await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 978await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1011await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1044await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1119await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1146await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 1173await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 1199await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly())); 2194""", new(options: ExplicitTypeForBuiltInTypesOnly())); 2224""", new(options: ExplicitTypeForBuiltInTypesOnly())); 2250""", new(options: ExplicitTypeForBuiltInTypesOnly())); 2278""", new(options: ExplicitTypeForBuiltInTypesOnly())); 2453""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2470""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2485""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2504""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2520""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2536""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2552""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2573""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2589""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2606""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2622""", new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2683await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly())); 2701await TestMissingInRegularAndScriptAsync(before, new TestParameters(options: ExplicitTypeForBuiltInTypesOnly()));