701 references to Net70
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (41)
CodeGen\CodeGenForEachTests.cs (6)
5366CompileAndVerify(source, targetFramework: TargetFramework.Net70, 5406CompileAndVerify(source, targetFramework: TargetFramework.Net70, 5452CompileAndVerify(source, targetFramework: TargetFramework.Net70, 5492CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 5533CompileAndVerify(source, targetFramework: TargetFramework.Net70, 5574CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
1734CompileAndVerify(source, expectedOutput: "34361843576", verify: Verification.Skipped, targetFramework: TargetFramework.Net70).VerifyIL("Test.Main", @"
CodeGen\CodeGenRefLocalTests.cs (5)
3487verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70); 3527verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70); 3564verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70); 3612verify: Verification.Fails, targetFramework: TargetFramework.Net70); 3665verify: Verification.Fails, targetFramework: TargetFramework.Net70);
CodeGen\CodeGenStackAllocInitializerTests.cs (22)
914verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70); 952verify: Verification.Fails, targetFramework: TargetFramework.Net70); 980verify: Verification.Fails, targetFramework: TargetFramework.Net70, 1005verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70); 1108verify: Verification.Fails, targetFramework: TargetFramework.Net70); 1137verify: Verification.Fails, targetFramework: TargetFramework.Net70, 1162verify: Verification.Fails, targetFramework: TargetFramework.Net70); 1207verify: Verification.Fails, targetFramework: TargetFramework.Net70); 1236verify: Verification.Fails, targetFramework: TargetFramework.Net70, 1264verify: Verification.Fails, targetFramework: TargetFramework.Net70); 1292verify: Verification.Fails, targetFramework: TargetFramework.Net70, 1319verify: Verification.Fails, targetFramework: TargetFramework.Net70); 1347verify: Verification.Fails, targetFramework: TargetFramework.Net70, 1372verify: Verification.Fails, targetFramework: TargetFramework.Net70); 1419verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70); 1457verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70); 1498verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1524verify: Verification.Fails, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 1526var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1580verify: Verification.Fails, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 1637verify: Verification.Fails, targetFramework: TargetFramework.Net70); 1674verify: Verification.Fails, targetFramework: TargetFramework.Net70,
CodeGen\CodeGenUsingDeclarationTests.cs (2)
1609var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1626comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
CodeGen\CodeGenUsingStatementTests.cs (4)
3168CompileAndVerify(source, targetFramework: TargetFramework.Net70, 3200CompileAndVerify(source, targetFramework: TargetFramework.Net70, 3238CompileAndVerify(source, targetFramework: TargetFramework.Net70, 3270CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
CodeGen\IndexAndRangeTests.cs (1)
4235var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (137)
CodeGen\CodeGenLengthBasedSwitchTests.cs (5)
1926var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1979var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2085var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2191var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2244var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
CodeGen\IndexAndRangeTests.cs (4)
1080var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1116var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1144var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1184var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Emit\LocalStateTracing\LocalStateTracingTests.cs (1)
165private const TargetFramework s_targetFramework = TargetFramework.Net70;
Emit\NumericIntPtrTests.cs (127)
933var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 936comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 941comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 944comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 995var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 998comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1003comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1006comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1024comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1039var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1069var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1094var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1132var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1188var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1191comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1196comp = CreateCompilation(sourceB, references: new[] { ref1 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1199comp = CreateCompilation(sourceB, references: new[] { ref2 }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1231var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1234comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1252var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1275var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1278comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1296var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1328var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1363CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1377CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 1408CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1409CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 1432var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1456var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1491var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1520var comp = CreateCompilation("", parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1625var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1646comp = CreateCompilation(sourceB, references: new[] { AsReference(comp, useCompilationReference) }, parseOptions: useLatest ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1738var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1757comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular8, targetFramework: TargetFramework.Net70); 1865var comp = CreateCompilation(source, parseOptions: TestOptions.Regular7_3, targetFramework: TargetFramework.Net70); 1868comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1913var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 1965var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2048var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2150var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2223var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2251comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2292comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2407var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2457var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2598var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2711var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2796var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2811var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2823comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2840var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2855comp = CreateCompilation(source1, references: new[] { ref0 }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2877var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2919var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 2952var comp = CreateCompilation(source0, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3052var comp = CreateCompilation(new[] { sourceA, sourceB }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3055comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3059comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3062comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3065comp = CreateCompilation(sourceB, references: new[] { ref1 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 3068comp = CreateCompilation(sourceB, references: new[] { ref2 }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular8, targetFramework: TargetFramework.Net70); 3125var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 3293var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6003var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6240var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6613var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 6847var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 7020var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8121var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8182var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8612var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8688var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9013var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9032comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9060var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9089var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9121comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9139comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9157var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9188comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9206comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9245var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9274var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9298var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9327var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9362var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9427var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9508var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9646var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9702var comp = CreateCompilation(new[] { sourceA, sourceB }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9832var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9904var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 9917var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9939var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 9971var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10024var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10273var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, targetFramework: TargetFramework.Net70); 10500var comp = CreateCompilation(new[] { source }, targetFramework: TargetFramework.Net70); 10576var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10587var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10708var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10721var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10724var comp2 = CreateCompilation(source, references: new[] { image }, targetFramework: TargetFramework.Net70); 10758var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10826var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10894var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10921var comp = CreateCompilation(source, references: new[] { libComp.ToMetadataReference() }, targetFramework: TargetFramework.Net70); 10943var libComp = CreateCompilation(lib_cs, assemblyName: "lib", targetFramework: TargetFramework.Net70); 10985var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11047var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11168var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11191var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11219var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11244var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11269var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11289var comp = CreateCompilation(src, parseOptions: TestOptions.RegularWithDocumentationComments, targetFramework: TargetFramework.Net70); 11629var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11687var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11704var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11748comp = CreateCompilation(new[] { source }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 11813targetFramework: useNumericIntPtr ? TargetFramework.Net60 : TargetFramework.Net70);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (105)
RefReadonlyParameterTests.cs (1)
2939CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
RefStructInterfacesTests.cs (27)
3178var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3253var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3340var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3472var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3515var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3563var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3739var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3805var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3882var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3931var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4043var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4085var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4128var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4177var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4231var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4286var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4353var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5474var comp2 = CreateCompilation(src1, targetFramework: TargetFramework.Net70); 5476CreateCompilation(src2, references: [comp2.ToMetadataReference()], targetFramework: TargetFramework.Net70).VerifyDiagnostics( 5607var comp2 = CreateCompilation(src1, targetFramework: TargetFramework.Net70); 5609CreateCompilation(src2, references: [comp2.ToMetadataReference()], targetFramework: TargetFramework.Net70).VerifyDiagnostics( 5863CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular13).VerifyEmitDiagnostics(); 5865CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 22725var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22777var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 22823var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe);
RefUnsafeInIteratorAndAsyncTests.cs (22)
395CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 418CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 430CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 431CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 452CompileAndVerify(source, expectedOutput: IfSpans("456"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 472CompileAndVerify(source, expectedOutput: IfSpans("123"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 491CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 815CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 838CreateCompilation(source, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 850CreateCompilation(source, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 851CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 873CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 895CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 918CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 948CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 978CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 1006CompileAndVerify(source, expectedOutput: IfSpans("-1 456"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 1032CompileAndVerify(source, expectedOutput: IfSpans("123-1"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 1051CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 1074CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 1231CompileAndVerify(source, expectedOutput: IfSpans("123"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 1256CompileAndVerify(source, expectedOutput: IfSpans("123"), verify: Verification.FailsPEVerify, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
Semantics\CollectionExpressionTests.cs (50)
3881targetFramework: TargetFramework.Net70, 3903var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5444targetFramework: TargetFramework.Net70, 5624targetFramework: TargetFramework.Net70, 5649targetFramework: TargetFramework.Net70, 5673var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5702var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5721var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5728comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 9432targetFramework: TargetFramework.Net70, 9540targetFramework: TargetFramework.Net70, 10090targetFramework: TargetFramework.Net70, 15135var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15410[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework, 15434var sources = targetFramework == TargetFramework.Net70 20433[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework, 20533[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 20867[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 20915[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 21262[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 22447public void RefSafety_Return_01([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 22493public void RefSafety_Return_02([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 22520public void RefSafety_Return_03([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 22603[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework, 22846verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12")); 22946verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 23059verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("11")); 23156verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: IncludeExpectedOutput("12")); 23190public void SpanArgument_01([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 23801[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework, 23981[CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework, 24083public void SpanAssignment_03([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 24458public void SpanAssignment_RefLocal([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 24483public void SpanAssignment_NestedScope_01([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework) 26433var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 28554CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 28579CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics( 29507var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29533var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29557var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29581var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29604var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29639targetFramework: TargetFramework.Net70, 29662var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29696targetFramework: TargetFramework.Net70, 29721var comp = CreateCompilation(new[] { source, s_collectionExtensions }, targetFramework: TargetFramework.Net70); 30913var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 31227CreateCompilation(src, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 33512var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 42200public void CreatingNewListFromLengthWithSideEffects([CombinatorialValues(TargetFramework.Net70, TargetFramework.Net80)] TargetFramework targetFramework)
Semantics\InlineArrayTests.cs (4)
18186var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18198var vbComp = CreateVisualBasicCompilation("", referencedAssemblies: TargetFrameworkUtil.GetReferences(TargetFramework.Net70, null)); 18217var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 18243var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70);
Semantics\ParamsCollectionTests.cs (1)
412targetFramework: TargetFramework.Net70,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (378)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1625var compilation = CreateCompilation(source, parseOptions: useCSharp9 ? TestOptions.Regular9 : TestOptions.Regular10, targetFramework: TargetFramework.Net70);
Semantics\DelegateTypeTests.cs (6)
14093var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: 14145var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: 14210var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, expectedOutput: 14301var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 14315comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 14339var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\DynamicTests.cs (1)
1641CompileAndVerify(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70,
Semantics\InterpolationTests.cs (16)
15323var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15356var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15392var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15440var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15478var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15519var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15562var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15601var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15640var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15680var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15719var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15763var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15811var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15853var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 15892var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 17073var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70);
Semantics\LambdaTests.cs (1)
7094var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\MethodTypeInferenceTests.cs (4)
696var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 751var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 797var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 828var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\NullableReferenceTypesTests.cs (3)
161199CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 161319var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 161343var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\NullableReferenceTypesVsPatterns.cs (4)
2951var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2980var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3016var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 3050var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\QueryTests.cs (4)
4599CompileAndVerify(source, targetFramework: TargetFramework.Net70, 4643CompileAndVerify(source, targetFramework: TargetFramework.Net70, 4693CompileAndVerify(source, targetFramework: TargetFramework.Net70, 4737CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
Semantics\RefEscapingTests.cs (46)
6944var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7011var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7060var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7105var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7159var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7204var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7251var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7305var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7349var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7390var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7439var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7476var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7520var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7596var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7646var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7699var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7771var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7833var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7889var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7962var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8035var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8551var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8584var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8626var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8712var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 9433CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9463CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9493CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9514CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9581CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9619CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9639CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 9685CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9705CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9725CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 9988CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 10078CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10124CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10170CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 10198CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10227CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 10248CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10274CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10303CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10330CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 10359CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics();
Semantics\RefFieldTests.cs (271)
85var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 97comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 126comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 150comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 167var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 175comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 197comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 211comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 236var comp = CreateCompilation(sourceA, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 244comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 271comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 285comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 370var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 394var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 425var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 564var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 602var comp = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.UnsafeReleaseExe, targetFramework: TargetFramework.Net70); 632var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 656var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 726var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 772var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 821var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 904var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1002var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1095var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1160var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1236var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1279comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1316var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1350var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1395var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1440var comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1488var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1544var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1596var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1652var comp = CreateCompilation(source, references: new[] { spanReference.EmitToImageReference() }, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 1689var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1727var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 1763var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1799var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1842var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1886var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 1918var comp = CreateCompilation(sourceB, new[] { refA }, targetFramework: TargetFramework.Net70); 1958var comp = CreateCompilation(sourceC, new[] { refB }, targetFramework: TargetFramework.Net70); 1988var compB = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2056var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2065comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2227var compA = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 2246var compB = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2263targetFramework: TargetFramework.Net70, 2289var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net70); 2337var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 2363comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2439var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 2477var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: TargetFramework.Net70); 2503var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2512comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2534var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 2585var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 2601comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2640var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2696var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2732var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 2782var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 4391var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 4421var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5214var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5271var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5346var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 5437var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5465var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 5484CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(9), targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 5493CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(10), targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 5494CreateCompilation(source, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 5867var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 5935var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 5973var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6032var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6070var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6128var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6174var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6214var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6260var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 6381var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 6626var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 6786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7031var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7115var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7188comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7238var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7313comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 7374var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7458var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7545var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7583var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7657var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7728var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7756var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7799var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7827var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 7889var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 7933var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 7995var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 8039var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, targetFramework: TargetFramework.Net70); 8101var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8148var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8219var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8266var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8328var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature("peverify-compat"), targetFramework: TargetFramework.Net70); 8362var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8408var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8480var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 8508var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 8565var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8634var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8671var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8708var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8753var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8803var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8872var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 8943var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9006var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9080var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9699var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 9816var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 10014var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 10097var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 10201var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10240var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 10280var comp = CreateCompilation(source, options: TestOptions.UnsafeDebugExe, targetFramework: TargetFramework.Net70); 11505var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11835var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11847comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 11869var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 11881comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16495var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16532var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16579var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16622var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16657var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16684var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16718var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 16813var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 17776var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 17812var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18245var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 18700var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18718var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18799var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 18827var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 18904var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18930var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18960var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 18995var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19021var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19064var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19092var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19130var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19174var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19227var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19274var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19413var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19491var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19576var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19671var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19794var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19850var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19892var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19921var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 19981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20038var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20103var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20129var comp = CreateCompilation(sourceB, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70); 20298var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20326var comp = CreateCompilation(source, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20333comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20354var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20356var comp = CreateCompilation(source, references: new[] { lib.EmitToImageReference() }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net70); 20415var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 20461var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20486var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20516var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20562var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20585var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20605var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20629var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20660var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20798var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20825var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 20846var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21159var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21211var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21244var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21302var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21334var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21456var comp = CreateCompilation(source, options: TestOptions.DebugExe, targetFramework: TargetFramework.Net70); 21458comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21615var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21676comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21747var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21786var comp = CreateCompilation(source, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 21862var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 21886var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22613var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22649var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22729var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22939var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 22952comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 23085var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 23105comp = CreateCompilation(sourceB1, references: new[] { refA }, targetFramework: TargetFramework.Net70); 23152comp = CreateCompilation(sourceB2, references: new[] { refA }, targetFramework: TargetFramework.Net70); 23195var comp = CreateCompilation(sourceA, targetFramework: TargetFramework.Net70); 23308var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23598var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 23648var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 24082var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25529var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25607var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25645var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25690var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25717var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25752var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25778var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 25879var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26007var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26069var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26114var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 26521[InlineData(LanguageVersion.CSharp10, TargetFramework.Net70, true, true)] 26522[InlineData(LanguageVersion.CSharp11, TargetFramework.Net70, true, true)] 26523[InlineData(LanguageVersion.Latest, TargetFramework.Net70, true, true)] 26975var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 27904var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 27983var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28099var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugExe); 28179var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28248var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeDebugDll); 28292var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28317var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.UnsafeReleaseExe); 28351var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28380var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28409var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28441var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28476var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28508var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net70); 28550var comp = CreateCompilation(new[] { sourceA, sourceB }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28582var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28618var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28665var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28694var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28723var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28749var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28771var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28810var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseExe); 28949var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 28981var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29010var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29169var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29246var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29316var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29376var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29411var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29449var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29479var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29524var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29591var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0"); 29648var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: "0"); 29722var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, expectedOutput: """ 29895var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29932var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 29970var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\RefLocalsAndReturnsTests.cs (12)
3298CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3299CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3300CompileAndVerify(code, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3329CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3330CreateCompilation(code, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3331CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3454CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 3461CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3462CompileAndVerify(code, expectedOutput: expectedOutput, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics(); 3484CreateCompilation(code, parseOptions: TestOptions.Regular12, targetFramework: TargetFramework.Net70).VerifyDiagnostics( 3496CreateCompilation(code, parseOptions: TestOptions.Regular13, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics); 3497CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
Semantics\SpanStackSafetyTests.cs (5)
1497var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1541var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1595var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1657var comp = CreateCompilation(src, targetFramework: TargetFramework.Net70); 1694CreateCompilation(code, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(
Semantics\StackAllocInitializerTests.cs (3)
2704var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2747var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 2776var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70);
Semantics\UnsafeTests.cs (1)
6097var comp = CreateCompilation(libSrc, targetFramework: TargetFramework.Net70);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (23)
Symbols\CompilationCreationTests.cs (1)
3032compilation = CreateCompilation("Compilation", targetFramework: TargetFramework.Net70);
Symbols\DefaultInterfaceImplementationTests.cs (1)
69143var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70,
Symbols\PartialPropertiesTests.cs (1)
2918targetFramework: TargetFramework.Net70,
Symbols\RequiredMembersTests.cs (15)
1379var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70); 1798var comp = CreateCompilation(new[] { c }, references: new[] { ilRef }, targetFramework: TargetFramework.Net70); 2540var comp = CreateCompilation(code, new[] { baseRef }, targetFramework: TargetFramework.Net70); 2735var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 2766var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 2888var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3014var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3546var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3680var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 3811var comp = CreateCompilation(c, new[] { ilRef }, targetFramework: TargetFramework.Net70); 6097var comp = CreateCompilationWithIL(code, badIl, targetFramework: TargetFramework.Net70); 6712var comp = CreateCompilationWithIL("_ = new S();", il, targetFramework: TargetFramework.Net70); 7026var comp = CreateCompilationWithIL("_ = new C();", il, targetFramework: TargetFramework.Net70); 7127var comp = CreateCompilationWithIL("_ = new C();", il, targetFramework: TargetFramework.Net70); 7142var comp = CreateCompilationWithIL("_ = new C() { P1 = 1 };", il, targetFramework: TargetFramework.Net70);
Symbols\Source\FileModifierTests.cs (5)
2836var comp = CreateCompilation(new[] { (source1, "F1.cs") }, targetFramework: TargetFramework.Net70); 2866var comp = CreateCompilation(new[] { (source1, "F1.cs") }, targetFramework: TargetFramework.Net70); 4908var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 4947var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70); 4998var comp = CreateCompilation(new[] { (source1, "F1.cs"), (source2, "F2.cs") }, targetFramework: TargetFramework.Net70);
Microsoft.CodeAnalysis.Test.Utilities (1)
TargetFrameworkUtil.cs (1)
306TargetFramework.NetCoreApp or TargetFramework.Net70 => ImmutableArray.CreateRange<MetadataReference>(Net70.References.All),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (14)
Semantics\RefFieldTests.vb (3)
27Dim compA = CreateCSharpCompilation(GetUniqueName(), sourceA, referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Net70)) 75comp = CreateCompilation(source, targetFramework:=TargetFramework.Net70) 147Dim compB = CreateCSharpCompilation(GetUniqueName(), sourceB, referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Net70, {refA}))
Semantics\RequiredMembersTests.vb (11)
538End Class", targetFramework:=TargetFramework.Net70) 870End Module", {ilRef}, targetFramework:=TargetFramework.Net70) 1006End Module", {ilRef}, targetFramework:=TargetFramework.Net70) 1139End Module", {ilRef}, targetFramework:=TargetFramework.Net70) 1297End Module", {ilRef}, targetFramework:=TargetFramework.Net70) 1826", {ilAssembly}, targetFramework:=TargetFramework.Net70) 1846End Class", targetFramework:=TargetFramework.Net70) 2241End Module", {ilRef}, targetFramework:=TargetFramework.Net70) 2343End Module", {ilRef}, targetFramework:=TargetFramework.Net70) 2445End Module", {ilRef}, targetFramework:=TargetFramework.Net70) 2470End Module", {csharpComp.EmitToImageReference()}, targetFramework:=TargetFramework.Net70)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\CompilationCreationTests.vb (1)
2261compilation = VisualBasicCompilation.Create("Compilation", references:=TargetFrameworkUtil.GetReferences(TargetFramework.Net70, Nothing))
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
931references = [.. TargetFrameworkUtil.GetReferences(TargetFramework.Net70)];