src\Analyzers\CSharp\Tests\MakeRefStruct\MakeRefStructTests.cs (6)
59await TestInRegularAndScriptAsync(text, expected, new(parseOptions: s_parseOptions));
118await TestInRegularAndScriptAsync(text, expected, new(parseOptions: s_parseOptions));
136await TestInRegularAndScriptAsync(text, expected, new(parseOptions: s_parseOptions));
184await TestInRegularAndScriptAsync(text, expected, new(parseOptions: s_parseOptions));
226await TestInRegularAndScriptAsync(text, expected, new(parseOptions: s_parseOptions));
252await TestInRegularAndScriptAsync(text, expected, new(parseOptions: s_parseOptions));
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (109)
131await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
133await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
163await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
165await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
335await TestInRegularAndScriptAsync(before, """
369await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
370await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
371await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent())); // preference for builtin types dominates
396await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
397await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
398await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
423await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
424await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
425await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
450await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
451await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
452await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
479await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
480await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
481await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
514await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
515await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
516await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
541await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
542await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
543await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
568await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
570await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
599await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
601await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
632await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
634await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
663await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
665await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
694await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
696await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
725await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
727await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
754await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
756await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
787await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
789await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
820await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
822await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
851await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
853await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
880await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
882await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
909await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
911await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
944await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
946await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
977await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
979await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
1010await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
1012await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
1043await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
1045await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
1050=> TestInRegularAndScriptAsync("""
1118await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
1120await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
1145await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
1146await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
1147await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent())); // preference for builtin types dominates
1172await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
1174await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
1198await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
1199await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeForBuiltInTypesOnly()));
1200await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
1241=> TestInRegularAndScriptAsync(
1266=> TestInRegularAndScriptAsync(
1291=> TestInRegularAndScriptAsync(
1316=> TestInRegularAndScriptAsync(
1341=> TestInRegularAndScriptAsync(
1366=> TestInRegularAndScriptAsync(
1391=> TestInRegularAndScriptAsync(
1416=> TestInRegularAndScriptAsync(
1441=> TestInRegularAndScriptAsync(
1534=> TestInRegularAndScriptAsync(
1560=> TestInRegularAndScriptAsync(
1586=> TestInRegularAndScriptAsync(
1612=> TestInRegularAndScriptAsync(
1638=> TestInRegularAndScriptAsync(
1664=> TestInRegularAndScriptAsync(
1690=> TestInRegularAndScriptAsync(
1716=> TestInRegularAndScriptAsync(
1748=> TestInRegularAndScriptAsync(
1784=> TestInRegularAndScriptAsync(
1812=> TestInRegularAndScriptAsync(
1856=> TestInRegularAndScriptAsync(
1886=> TestInRegularAndScriptAsync(
1920=> TestInRegularAndScriptAsync(
1968=> TestInRegularAndScriptAsync(
2014=> TestInRegularAndScriptAsync(
2040=> TestInRegularAndScriptAsync(
2068=> TestInRegularAndScriptAsync(
2106=> TestInRegularAndScriptAsync(
2134=> TestInRegularAndScriptAsync(
2172=> TestInRegularAndScriptAsync(
2198=> TestInRegularAndScriptAsync(
2228=> TestInRegularAndScriptAsync(
2254=> TestInRegularAndScriptAsync(
2346=> TestInRegularAndScriptAsync(
2369=> TestInRegularAndScriptAsync(
2392=> TestInRegularAndScriptAsync(
2415=> TestInRegularAndScriptAsync(
2682await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeEverywhere()));
2684await TestInRegularAndScriptAsync(before, after, new(options: ExplicitTypeExceptWhereApparent()));
2707=> TestInRegularAndScriptAsync(
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (69)
454=> TestInRegularAndScriptAsync(
496=> TestInRegularAndScriptAsync(
579=> TestInRegularAndScriptAsync(
605=> TestInRegularAndScriptAsync(
631=> TestInRegularAndScriptAsync(
659=> TestInRegularAndScriptAsync("""
687=> TestInRegularAndScriptAsync(
713=> TestInRegularAndScriptAsync(
739=> TestInRegularAndScriptAsync(
765=> TestInRegularAndScriptAsync(
791=> TestInRegularAndScriptAsync(
817=> TestInRegularAndScriptAsync(
843=> TestInRegularAndScriptAsync(
875=> TestInRegularAndScriptAsync(
911=> TestInRegularAndScriptAsync(
939=> TestInRegularAndScriptAsync(
983=> TestInRegularAndScriptAsync(
1013=> TestInRegularAndScriptAsync(
1047=> TestInRegularAndScriptAsync(
1095=> TestInRegularAndScriptAsync(
1141=> TestInRegularAndScriptAsync(
1169=> TestInRegularAndScriptAsync(
1207=> TestInRegularAndScriptAsync(
1235=> TestInRegularAndScriptAsync(
1263=> TestInRegularAndScriptAsync(
1301=> TestInRegularAndScriptAsync(
1376=> TestInRegularAndScriptAsync(
1402=> TestInRegularAndScriptAsync(
1443=> TestInRegularAndScriptAsync(
1469=> TestInRegularAndScriptAsync(
1553=> TestInRegularAndScriptAsync(
1597=> TestInRegularAndScriptAsync(
1623=> TestInRegularAndScriptAsync(
1655=> TestInRegularAndScriptAsync(
1681=> TestInRegularAndScriptAsync(
1709=> TestInRegularAndScriptAsync(
1807await TestInRegularAndScriptAsync(before, @"class C { static void M() { var s = new int[0]; } }", new(options: ImplicitTypeEverywhere()));
1819await TestInRegularAndScriptAsync(before, after, new(options: ImplicitTypeEverywhere()));
1820await TestInRegularAndScriptAsync(before, after, new(options: ImplicitTypeButKeepIntrinsics()));
1821await TestInRegularAndScriptAsync(before, after, new(options: ImplicitTypeWhereApparent()));
1831await TestInRegularAndScriptAsync(before, after, new(options: ImplicitTypeEverywhere()));
1832await TestInRegularAndScriptAsync(before, after, new(options: ImplicitTypeButKeepIntrinsics()));
1860await TestInRegularAndScriptAsync(before, after, new(options: ImplicitTypeEverywhere()));
1861await TestInRegularAndScriptAsync(before, after, new(options: ImplicitTypeWhereApparentAndForIntrinsics()));
1869await TestInRegularAndScriptAsync(before, @"class C { static void M(C c) { var s = (a: 1, b: c); } }", new(options: ImplicitTypeEverywhere()));
1876=> TestInRegularAndScriptAsync(
1903=> TestInRegularAndScriptAsync(
1979=> TestInRegularAndScriptAsync(
2043=> TestInRegularAndScriptAsync(
2104=> TestInRegularAndScriptAsync("""
2142=> TestInRegularAndScriptAsync("""
2178=> TestInRegularAndScriptAsync("""
2208=> TestInRegularAndScriptAsync("""
2238=> TestInRegularAndScriptAsync("""
2268=> TestInRegularAndScriptAsync("""
2298=> TestInRegularAndScriptAsync("""
2318=> TestInRegularAndScriptAsync("""
2378=> TestInRegularAndScriptAsync("""
2404=> TestInRegularAndScriptAsync("""
2430=> TestInRegularAndScriptAsync("""
2680=> TestInRegularAndScriptAsync(
2748=> TestInRegularAndScriptAsync(
2860=> TestInRegularAndScriptAsync(
2893=> TestInRegularAndScriptAsync(
2926=> TestInRegularAndScriptAsync(
2959=> TestInRegularAndScriptAsync(
3008=> TestInRegularAndScriptAsync(
3057=> TestInRegularAndScriptAsync(
3128=> TestInRegularAndScriptAsync(