1584 references to ReleaseDll
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
201options: fileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) ? TestOptions.ReleaseExe : TestOptions.ReleaseDll);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
7342var compilation = CSharpCompilation.Create("a.dll", references: new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 7453var compilation = CSharpCompilation.Create("a.dll", options: TestOptions.ReleaseDll);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
CodeActions\AddUsing\AddUsingTests.cs (1)
2063TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver));
Semantics\SpeculationAnalyzerTests.cs (1)
533TestOptions.ReleaseDll.WithSpecificDiagnosticOptions([KeyValuePairUtil.Create("CS0219", ReportDiagnostic.Suppress)]));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (246)
BreakingChanges.cs (3)
1410compilationOptions: TestOptions.ReleaseDll); 1416compilationOptions: TestOptions.ReleaseDll, 1423compilationOptions: TestOptions.ReleaseDll,
CodeGen\CodeGenAsyncIteratorTests.cs (4)
3205var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll); 3473var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3742var comp = CreateCompilationWithTasksExtensions(new[] { source, EnumeratorCancellationAttributeType, AsyncStreamsTypes }, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 4006var comp = CreateCompilationWithAsyncIterator(new[] { source, EnumeratorCancellationAttributeType }, options: TestOptions.ReleaseDll);
CodeGen\CodeGenAsyncLocalsTests.cs (6)
236CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 288CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 962var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 992var c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll); 1150var c = CompileAndVerify(source, expectedOutput: null, options: TestOptions.ReleaseDll); 1247CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: s_asyncRefs, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
CodeGen\CodeGenAsyncSpillTests.cs (3)
759var v = CompileAndVerify(source, options: TestOptions.ReleaseDll); 945CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 3911CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics().VerifyEmitDiagnostics(expectedDiagnostics);
CodeGen\CodeGenAsyncTests.cs (7)
3311var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3341var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3372var comp = CSharpTestBase.CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, TestOptions.ReleaseDll); // NOTE: 4.0, not 4.5, so it's missing the async helpers. 3451var v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll); 3914var v = CompileAndVerify(source, null, options: TestOptions.ReleaseDll); 5909comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 5933var comp = CSharpTestBase.CreateCompilation(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenCheckedTests.cs (4)
1880CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @" 1889CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)).VerifyIL("C.ULong_UInt", @" 1912CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @" 1940CompileAndVerify(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)).VerifyIL("C.ULong_UInt", @"
CodeGen\CodeGenClosureLambdaTests.cs (3)
4715var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4807var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll); 4936var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenDynamicTests.cs (7)
42var optimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All).WithAllowUnsafe(allowUnsafe)); 584var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 640var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 675var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 801var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 821var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: peModule => 7593TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
CodeGen\CodeGenExplicitImplementationTests.cs (2)
215options: TestOptions.ReleaseDll); 374options: TestOptions.ReleaseDll);
CodeGen\CodeGenFieldInitTests.cs (6)
435var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 462var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 511var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 565var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 592var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenFunctionPointersTests.cs (1)
9776", UnmanagedCallersOnlyAttribute }, options: TestOptions.ReleaseDll);
CodeGen\CodeGenImplicitImplementationTests.cs (1)
2293var libComp = CreateCompilation(libSource, options: TestOptions.ReleaseDll, assemblyName: "OtherAssembly");
CodeGen\CodeGenIterators.cs (4)
1176var rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1232CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1281CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 2569var v = CompileAndVerify(source, options: TestOptions.ReleaseDll);
CodeGen\CodeGenMscorlib.cs (4)
206options: TestOptions.ReleaseDll) 549options: TestOptions.ReleaseDll) 615options: TestOptions.ReleaseDll) 753options: TestOptions.ReleaseDll)
CodeGen\CodeGenOverridingAndHiding.cs (13)
2536options: TestOptions.ReleaseDll, 2830options: TestOptions.ReleaseDll); 2923options: TestOptions.ReleaseDll); 3161parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 3168parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 4203compilationOptions: TestOptions.ReleaseDll, 4272compilationOptions: TestOptions.ReleaseDll, 4359compilationOptions: TestOptions.ReleaseDll); 4363compilationOptions: TestOptions.ReleaseDll, 4368compilationOptions: TestOptions.ReleaseDll, 4373compilationOptions: TestOptions.ReleaseDll, 4420compilationOptions: TestOptions.ReleaseDll, 4455compilationOptions: TestOptions.ReleaseDll,
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (6)
945var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1314var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1478var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 1515var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 2406var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll); 3527var compilation = CreateCompilationWithMscorlibAndSpan(csharp, TestOptions.ReleaseDll);
CodeGen\CodeGenRefLocalTests.cs (11)
1673CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M()", @" 1712CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 1750CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 1789CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 1828CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1866CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1907CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1946CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @" 1984CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 2021CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M", @" 2060CompileAndVerify(text, options: TestOptions.ReleaseDll).VerifyIL("Program.M<T>", @"
CodeGen\CodeGenRefReturnTests.cs (2)
2520var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 2553var comp = CreateCompilation(text, options: TestOptions.ReleaseDll);
CodeGen\CodeGenStackAllocInitializerTests.cs (1)
214", options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3));
CodeGen\CodeGenTests.cs (7)
34var options = TestOptions.ReleaseDll 335var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 383var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 436var result = CompileAndVerify(source, options: TestOptions.ReleaseDll); 534var compilation = CreateCompilationWithILAndMscorlib40(source, il, TargetFramework.Mscorlib461, options: TestOptions.ReleaseDll); 10448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 13270var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithConcurrentBuild(false));
CodeGen\CodeGenTryFinally.cs (8)
3924var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 4021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 4053var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 4085var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4149var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4212var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4287CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(expectedDiagnostics); 4314CompileAndVerify(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
CodeGen\CodeGenTupleTest.cs (10)
1688options: TestOptions.ReleaseDll); 13913options: TestOptions.ReleaseDll); 14078options: TestOptions.ReleaseDll); 14500options: TestOptions.ReleaseDll); 14769var lib = CreateCompilationWithMscorlib40(tuple, options: TestOptions.ReleaseDll); 15030var lib = CreateCompilationWithMscorlib40(tuple, options: TestOptions.ReleaseDll); 15416var lib = CreateCompilationWithMscorlib46(tuple, options: TestOptions.ReleaseDll); 15677var lib = CreateCompilationWithMscorlib46(tuple, options: TestOptions.ReleaseDll); 22479var compLib = CreateCompilationWithMscorlib40(lib_cs, options: TestOptions.ReleaseDll); 29179var verifier = CompileAndVerify(source, options: TestOptions.ReleaseDll);
CodeGen\DestructorTests.cs (1)
692var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll);
CodeGen\ForLoopsTests.cs (4)
726var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 907var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 961var c = CompileAndVerify(source, options: TestOptions.ReleaseDll); 1265var c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
CodeGen\GotoTest.cs (1)
503var c = CompileAndVerify(source, options: TestOptions.ReleaseDll);
CodeGen\IndexAndRangeTests.cs (1)
24expectedOutput is null ? TestOptions.ReleaseDll : TestOptions.ReleaseExe);
CodeGen\PatternTests.cs (34)
99var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 771var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 832var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 857var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 893var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 932var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 968var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1008var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1055var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1106var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1141var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1179var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1223var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1282var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1339var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1399var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1471var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1535var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1598var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1712var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1773var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1840var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1904var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1973var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2038var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2267var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2793var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3315var compilation = CreateEmptyCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 4121var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4173var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4213var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4248var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll);
CodeGen\SwitchTests.cs (14)
3040var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 8796options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8863options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 8939options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9003options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9077options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9150options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9225options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9300options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9369options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9450options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 9581options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication), 10119options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication)) 10170options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.ConsoleApplication),
CodeGen\WinMdDelegateTests.cs (1)
56options: winmd ? TestOptions.ReleaseWinMD : TestOptions.ReleaseDll,
Emit\BinaryCompatibility.cs (3)
34var lib0Image = CreateCompilationWithMscorlib46(lib0, options: TestOptions.ReleaseDll, assemblyName: "lib").EmitToImageReference(); 46var lib1Image = CreateCompilationWithMscorlib46(lib1, options: TestOptions.ReleaseDll, assemblyName: "lib").EmitToImageReference(); 58var clientImage = CreateCompilationWithMscorlib46(client, references: new[] { lib0Image }, options: TestOptions.ReleaseDll).EmitToImageReference();
Emit\CompilationEmitTests.cs (42)
1021var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1043var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1099var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1122var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1130var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, 1322", references: new[] { reference }, options: TestOptions.ReleaseDll); 1999options: TestOptions.ReleaseDll.WithCryptoKeyFile(snk.Path).WithPublicSign(true)); 2699options: TestOptions.ReleaseDll, 4013var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4079var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4110var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4141var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4172var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll, assemblyName: name); 4230var compilation = CreateCompilation("class A { }", options: TestOptions.ReleaseDll); 4288var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 4317var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4364var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4425var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 4610var c1 = CreateCompilation(p1, options: TestOptions.ReleaseDll, assemblyName: Guid.NewGuid().ToString()); 4678var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4692parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu)); 4698parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu)); 4716parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86)); 4724parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86)); 4776parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu)); 4784parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86)); 4808var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.X86), assemblyName: "PlatformMismatch"); 4823parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4831parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4878parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4895var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.AnyCpu), assemblyName: "PlatformMismatch"); 4910parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4916parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4957parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4972var refCompilation = CreateEmptyCompilation(refSource, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium), assemblyName: "PlatformMismatch"); 4987parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 4993parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 5035parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithPlatform(Platform.Itanium)); 5069var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5141var compilation = CreateCompilation(source, null, TestOptions.ReleaseDll); 5354var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll); 5416var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, references: new[] { CSharpRef });
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (16)
2478var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2499var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2519var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2538var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2568options: TestOptions.ReleaseDll, 2598options: TestOptions.ReleaseDll, 2645options: TestOptions.ReleaseDll, 2677var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2711var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2749var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 2794var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2863var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2893var verifier = CompileAndVerify(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2923options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 2958var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll); 2994var c = CreateCompilationWithMscorlib40(source + InstrumentationHelperSource, options: TestOptions.ReleaseDll);
Emit\EmitMetadataTests.cs (13)
120}, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 421CompileAndVerify(source, options: TestOptions.ReleaseDll, symbolValidator: module => 529CompileAndVerify(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll, sourceSymbolValidator: validator(true), symbolValidator: validator(false)); 579CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 673CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 741CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 888CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1288options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 2234options: TestOptions.ReleaseDll.WithDeterministic(true), 2597options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 2642CompileAndVerify(text, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 2871options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 2923options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
Emit\EntryPointTests.cs (1)
49var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll);
Emit\ResourceTests.cs (2)
132var c1 = CreateCompilation(source, assemblyName: "Win32WithCoff", options: TestOptions.ReleaseDll); 290var c1 = CSharpCompilation.Create("goo", references: new[] { MscorlibRef }, options: TestOptions.ReleaseDll);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (19)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
30TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2);
Emit\EditAndContinue\LocalSlotMappingTests.cs (1)
341var release = CreateCompilation(source, options: TestOptions.ReleaseDll);
Emit\NumericIntPtrTests.cs (4)
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); 6003var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70); 8121var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.Net70);
PDB\PDBAsyncTests.cs (4)
759var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 952var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1155var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module => 1464var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), symbolValidator: module =>
PDB\PDBDynamicLocalsTests.cs (1)
2497var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
PDB\PDBIteratorTests.cs (4)
180var c = CompileAndVerify(text, options: TestOptions.ReleaseDll, symbolValidator: module => 913CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1101var v = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1457var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
PDB\PDBTests.cs (3)
50var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 70var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); 5953var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll));
PDB\PDBUsingTests.cs (1)
3070var c = CreateCompilation(source, assemblyName: "EmittingPdbVsNot", options: TestOptions.ReleaseDll);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (674)
Attributes\AttributeTests.cs (23)
1701CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3093var compilation = CreateCompilation(source, references, options: TestOptions.ReleaseDll); 3166CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3208CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3258var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3306var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3358var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3410var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3442CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3581CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3675CSharpCompilationOptions opt = TestOptions.ReleaseDll; 3782CSharpCompilationOptions opt = TestOptions.ReleaseDll; 5884", options: TestOptions.ReleaseDll); 5944", options: TestOptions.ReleaseDll); 5992CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7490CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7608CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7651CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7709CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7807CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7915CSharpCompilationOptions opt = TestOptions.ReleaseDll; 7953CSharpCompilationOptions opt = TestOptions.ReleaseDll; 9908var comp = CreateCompilation(source, options: TestOptions.ReleaseDll);
Attributes\AttributeTests_Assembly.cs (87)
31var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 41var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 52var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 70var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(now)); 84var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCurrentLocalTime(new DateTime(2300, 1, 1))); 99var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 106other = CreateCompilation(s, options: TestOptions.ReleaseDll); 118var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 131var comp = CreateCompilation(s, options: TestOptions.ReleaseDll.WithDeterministic(true)); 144var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 154var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 164var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 174var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 193var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 206var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 227var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 236other = CreateCompilation(s, options: TestOptions.ReleaseDll); 245other = CreateCompilation(s, options: TestOptions.ReleaseDll); 267var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 277var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 287var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 297var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 306var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 310comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 314comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 347var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 362var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 376", options: TestOptions.ReleaseDll, assemblyName: "neutral"); 386", options: TestOptions.ReleaseDll, assemblyName: "de"); 396", options: TestOptions.ReleaseDll, assemblyName: "en_us"); 412", new MetadataReference[] { deRef, neutralRef }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "10"); 422compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "20"); 444", new MetadataReference[] { en_usRef }, options: TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "23"); 451compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "25"); 463", new MetadataReference[] { deRef, neutralRef }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "30"); 470compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "40"); 495", new MetadataReference[] { deRef }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "50"); 505compilation = CreateCompilationWithMscorlib40("", new MetadataReference[] { compilation.EmitToImageReference() }, TestOptions.ReleaseDll, assemblyName: assemblyNameBase + "60"); 518var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 524other = CreateCompilation(s, options: TestOptions.ReleaseDll); 534var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 544var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 554var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 560other = CreateCompilation(s, options: TestOptions.ReleaseDll); 570var other = CreateCompilation(s, options: TestOptions.ReleaseDll); 592", options: TestOptions.ReleaseDll, references: new[] { hash_module }); 623", options: TestOptions.ReleaseDll, references: new[] { hash_module }); 654", options: TestOptions.ReleaseDll, references: new[] { hash_module }); 684", options: TestOptions.ReleaseDll, references: new[] { hash_module }); 713", options: TestOptions.ReleaseDll, references: new[] { MscorlibRef_v4_0_30316_17626, hash_module }); 742", options: TestOptions.ReleaseDll, references: new[] { MscorlibRef_v4_0_30316_17626, hash_module }); 775", options: TestOptions.ReleaseDll, references: new[] { MscorlibRef_v4_0_30316_17626, hash_module }); 815", options: TestOptions.ReleaseDll, references: new[] { hash_module_Comp.EmitToImageReference() }); 835", options: TestOptions.ReleaseDll); 848", options: TestOptions.ReleaseDll, references: new[] { hash_module }); 862", options: TestOptions.ReleaseDll); 869var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 876comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 880comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 892var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 905var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 920var comp = CreateCompilation(s, options: TestOptions.ReleaseDll); 1439compilation = CreateCompilationWithMscorlib40("", options: TestOptions.ReleaseDll, references: new[] { netmodule1Ref, netmodule2Ref }); 1497var compilation = CreateCompilationWithMscorlib40(source, references: new[] { GetNetModuleWithAssemblyAttributesRef() }, options: TestOptions.ReleaseDll); 1523var compilation = CreateCompilationWithMscorlib40(source1, references: new[] { defsRef, netmodule1Ref }, options: TestOptions.ReleaseDll); 1533compilation = CreateCompilationWithMscorlib40("", references: new[] { defsRef, netmodule1Ref, netmodule2Ref }, options: TestOptions.ReleaseDll); 1576var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1629var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleDefsRef, netmodule0Ref, netmodule1Ref, netmodule2Ref, netmodule3Ref }, options: TestOptions.ReleaseDll); 1671var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1718var compilation = CreateCompilationWithMscorlib40(source, references: new[] { netmoduleRef }, options: TestOptions.ReleaseDll); 1744var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options: TestOptions.ReleaseDll); 1750appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef, Net40.References.SystemCore }, options: TestOptions.ReleaseDll); 1784var appCompilation = CreateCompilationWithMscorlib40(app, references: new[] { netModuleRef }, options: TestOptions.ReleaseDll); 2121options: TestOptions.ReleaseDll); 2153options: TestOptions.ReleaseDll); 2183options: TestOptions.ReleaseDll); 2215options: TestOptions.ReleaseDll); 2272var compilation = CreateCompilation(s, options: TestOptions.ReleaseDll); 2286var attributeDefinition1 = CreateCompilation(attribute1, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2293var comp = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition1 }, options: TestOptions.ReleaseDll); 2305var comp2 = CreateCompilation("", references: new[] { moduleWithAttribute }, options: TestOptions.ReleaseDll); 2318var attributeDefinition2 = CreateCompilation(attribute2, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2320var comp3 = CreateCompilation("", references: new[] { moduleWithAttribute, attributeDefinition2 }, options: TestOptions.ReleaseDll); 2337var c1Definition = CreateCompilation(c1, options: TestOptions.ReleaseDll, assemblyName: "A1").EmitToImageReference(); 2349var comp = CreateCompilation("", references: new[] { module1WithAttribute, c1Definition }, options: TestOptions.ReleaseDll); 2361var comp2 = CreateCompilation("", references: new[] { module1WithAttribute }, options: TestOptions.ReleaseDll); 2377var comp3 = CreateCompilation("", references: new[] { module2WithAttribute, c1Definition }, options: TestOptions.ReleaseDll);
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
3323CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)).VerifyDiagnostics(
Attributes\AttributeTests_Dynamic.cs (1)
1087CompileAndVerify(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
Attributes\AttributeTests_IsUnmanaged.cs (6)
92CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 114CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 201options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 229options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 417options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 437options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All),
Attributes\AttributeTests_MarshalAs.cs (3)
66options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 704options: TestOptions.ReleaseDll.WithWarningLevel(7)) 709options: TestOptions.ReleaseDll.WithWarningLevel(8))
Attributes\AttributeTests_NativeInteger.cs (5)
1413var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.Regular9); 1421comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 1444options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 1460var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1513", options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9, symbolValidator: symbolValidator);
Attributes\AttributeTests_Nullable.cs (10)
526var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 561var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 3631var options = TestOptions.ReleaseDll; 3756var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3826var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3867var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 3967var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4036var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4115var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 4970var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Attributes\AttributeTests_NullableContext.cs (1)
204var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Attributes\AttributeTests_NullablePublicOnly.cs (3)
119var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 253options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 501var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Attributes\AttributeTests_Security.cs (13)
670var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, assemblyName: "Test"); 723var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 766var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular9); 804var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 844var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 897var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 949var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1009var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1075var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1137var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1200var compilation = CreateCompilationWithMscorlib40(source, options: TestOptions.ReleaseDll); 1507TestOptions.ReleaseDll.WithXmlReferenceResolver(resolver)); 1629TestOptions.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(tempDir.Path)));
Attributes\AttributeTests_Synthesized.cs (7)
125var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 665CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 735CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 797options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), 871CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1802var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All); 1901var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All);
Attributes\AttributeTests_Tuples.cs (3)
109options: TestOptions.ReleaseDll, 143options: TestOptions.ReleaseDll); 658options: TestOptions.ReleaseDll);
Attributes\AttributeTests_WellKnownAttributes.cs (13)
3701CompileAndVerify(source, options: TestOptions.ReleaseDll, verify: Verification.FailsPEVerify, sourceSymbolValidator: sourceValidator, symbolValidator: metadataValidator); 5143var compilation = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 5271var opt = TestOptions.ReleaseDll; 6650CreateCompilation(source, null, TestOptions.ReleaseDll.WithConcurrentBuild(false)).VerifyDiagnostics( 9779var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 9844var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll); 9872compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { compilation1.EmitToImageReference() }), TestOptions.ReleaseDll); 9905? CreateEmptyCompilation(new[] { (libSrc, "libSrc"), (src, "src") }, WinRtRefs, TestOptions.ReleaseDll) 9907references: WinRtRefs.Append(CreateEmptyCompilation(new[] { libSrc }, WinRtRefs, TestOptions.ReleaseDll).EmitToImageReference()).ToArray(), 9908TestOptions.ReleaseDll); 10171var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 10208var compilation1 = CreateEmptyCompilation(source1, WinRtRefs, TestOptions.ReleaseDll); 10224var compilation2 = CreateEmptyCompilation(source2, WinRtRefs.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll);
Attributes\InternalsVisibleToAndStrongNameTests.cs (23)
95options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()), 141var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 152TestOptions.ReleaseDll.WithStrongNameProvider(GetProviderWithPath(keyFileDir))); 170var comp = CreateCompilation(syntaxTree, options: TestOptions.ReleaseDll); 182TestOptions.ReleaseDll.WithStrongNameProvider(GetProviderWithPath(PathUtilities.CombineAbsoluteAndRelativePaths(keyFileDir, @"TempSubDir\")))); 234var options = TestOptions.ReleaseDll.WithStrongNameProvider(provider); 311TestOptions.ReleaseDll.WithCryptoKeyFile(keyFileName).WithStrongNameProvider(GetProviderWithPath(keyFileDir))); 358TestOptions.ReleaseDll.WithCryptoKeyFile(publicKeyFileName).WithDelaySign(true).WithStrongNameProvider(GetProviderWithPath(publicKeyFileDir))); 383CSharpCompilation other = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCryptoKeyFile(tempFile.Path), parseOptions: parseOptions); 477var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey), parseOptions: parseOptions); 501var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithCryptoPublicKey(s_publicKey).WithPublicSign(true), parseOptions: parseOptions); 557var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 577var c = CreateCompilation(source, options: TestOptions.ReleaseDll.WithPublicSign(true), parseOptions: parseOptions); 609options: TestOptions.ReleaseDll 631options: TestOptions.ReleaseDll 655options: TestOptions.ReleaseDll 677options: TestOptions.ReleaseDll 718options: TestOptions.ReleaseDll 739options: TestOptions.ReleaseDll 756options: TestOptions.ReleaseDll.WithPublicSign(true), 2752var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2780var ca = CreateCompilation(sourceA, options: TestOptions.ReleaseDll, assemblyName: "ClassLibrary2", parseOptions: parseOptions); 2862var options = TestOptions.ReleaseDll
Diagnostics\DiagnosticAnalyzerTests.cs (20)
144var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions( 167var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions( 200var options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 286var options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 320var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 336options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 348options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 399var options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Default); 404options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 410options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Warn); 417options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Info); 424options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Hidden); 431options = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress); 451var options = TestOptions.ReleaseDll; 462options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 526var options = TestOptions.ReleaseDll; 534options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 541options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 1142var options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions); 1151options = TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(specificDiagOptions);
FlowAnalysis\StructTests.cs (15)
560options: TestOptions.ReleaseDll.WithWarningLevel(5), 570options: TestOptions.ReleaseDll.WithWarningLevel(5), 580options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 587options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel), 649CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 651CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 653CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 658CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 694CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 696CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 698CreateCompilation(source2, references: new MetadataReference[] { sourceReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 703CreateCompilation(source2, references: new MetadataReference[] { metadataReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 738CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 814CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 816CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
RefStructInterfacesTests.cs (3)
24729var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseDll); 25510var comp1 = CreateCompilation(src1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseDll); 28910var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, assemblyName: "Pia", targetFramework: s_targetFrameworkSupportingByRefLikeGenerics);
Semantics\CollectionExpressionTests.cs (7)
26360var comp = CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 28481CreateCompilation(source, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)).VerifyEmitDiagnostics( 30830var verifier = CompileAndVerify(source, targetFramework: TargetFramework.Net70, verify: Verification.Skipped, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 33429var comp = CreateCompilation(new[] { source, CollectionBuilderAttributeDefinition }, targetFramework: TargetFramework.Net70, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(WithSpanAllocWarning)); 42841var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 42853var builder = CreateCompilation(builderSource, references: [myCollection_v0.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 42868var myCollection = CreateCompilation(myCollectionSource, references: [builder.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection");
Semantics\InlineArrayTests.cs (119)
5027var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6757var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 6780var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9118var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9979var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10460var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11514var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11543var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11569var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11622var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11650var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11674var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11723var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11746var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11769var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11790var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11811var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11832var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11858var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11884var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11905var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11931var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 11959var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12056var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12106var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12140var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12197var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12411var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12439var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12473var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12496var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12523var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12551var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12585var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12608var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12662var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12700var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12725var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12748var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12835var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12867var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12892var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13269var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13311comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13342var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13359comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13382var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13396comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13428var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 13473comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13542comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 13603comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular10); 14055var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14086var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14116var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14156var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14185var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14235var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14265var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14294var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14338var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14366var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14420var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14445var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14469var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14501var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14538var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14563var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14596var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14635var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14684var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14733var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14781var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14828var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14872var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 14929var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 14973var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15023var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 15081var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16877var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17775var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17810var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17846var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 17904var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18010var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18046var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18082var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18118var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18773var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18795var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18818var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 18821comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 18824comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11); 18950var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19064var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19086var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19122var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19157var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19287var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19334var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19367var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19422var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19525var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19566var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19604var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19642var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19680var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19717var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19746var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 19781var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20381var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 20843var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 21799var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 22121var comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll);
Semantics\OutVarTests.cs (7)
82var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)); 110compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35837var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35883var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 35977var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36117var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular); 36225var compilation = CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
Semantics\ParamsCollectionTests.cs (89)
199var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 315var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 495var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 643var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 828var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 878var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 937var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 978var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 1010var myCollection_v0 = CreateCompilation(myCollection_v0Source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 1022var builder = CreateCompilation(builderSource, references: [myCollection_v0.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 1037var myCollection = CreateCompilation(myCollectionSource, references: [builder.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, assemblyName: "Collection"); 1387var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1563var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 1696var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2197var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2511var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2647var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 2708var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 3976var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 3979comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 3982comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4016var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4023var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4026comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4029comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4070var comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4073comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4076comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4083var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4090var comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4093comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4096comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4138var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4141comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4144comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4185var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4188comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4191comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4198var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4205var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4242comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4246comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4309var comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4312comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4315comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12); 4322var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4329var comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularPreview); 4332comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular13); 4335comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.Regular12); 4398var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4445var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4449var comp3 = CreateCompilation(src1 + ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4514var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4667var comp1 = CreateCompilation(ParamCollectionAttributeSource, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 4741var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 4770var comp1 = CreateCompilation(src1, options: TestOptions.ReleaseDll); 6875var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 7774var comp1 = CreateCompilation(src1, targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseDll); 9273var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9314var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9366var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9420var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9478var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9535var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9605var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9693var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9760var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9801var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9853var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9914var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 9961var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10014var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10068var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10124var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10170var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10212var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 10254var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 12760var comp = CreateCompilation(src1, references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 12764var comp1 = CreateCompilation(ParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12766var comp2 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 12788var comp5 = CreateCompilation(brokenParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 12790var comp6 = CreateCompilation(src1, references: references.Concat([comp5Ref]), options: TestOptions.ReleaseDll); 13243var comp1 = CreateCompilationWithMscorlib40(ParamCollectionAttributeSource, options: TestOptions.ReleaseDll); 15064var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 15107var comp = CreateCompilation(src, options: TestOptions.ReleaseDll); 16540var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16567var comp = CreateCompilation(source, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll); 16805var comp = CreateEmptyCompilation([source1, core], options: TestOptions.ReleaseDll.WithAllowUnsafe(true)); 16970comp = CreateEmptyCompilation([source2, core], options: TestOptions.ReleaseDll.WithAllowUnsafe(true));
Semantics\PatternMatchingTests.cs (2)
3736compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3795compilation = CreateCompilation(source, options: TestOptions.ReleaseDll);
Semantics\PatternMatchingTests_ListPatterns.cs (2)
282options: TestOptions.ReleaseDll); 8459var comp = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range, TestSources.GetSubArray }, options: TestOptions.ReleaseDll);
Semantics\PatternMatchingTests2.cs (19)
1970var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1991var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2015var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2056var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2145var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2182var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2204var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 2399CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 2400CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 2434CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 2435CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(); 2461CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2519CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2560CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2598CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2636CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2666CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics( 2733CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators).VerifyDiagnostics(
Semantics\PatternMatchingTests3.cs (1)
5093var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.RegularWithPatternCombinators);
Semantics\PatternMatchingTests4.cs (12)
3859CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3861CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 3880CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3882CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3902CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3904CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3924CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3926CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3948CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3950CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3975CreateCompilation(source, parseOptions: TestOptions.Regular7, options: TestOptions.ReleaseDll).VerifyDiagnostics( 3977CreatePatternCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
Semantics\PatternSwitchTests.cs (9)
3206source, options: TestOptions.ReleaseDll.WithOptimizationLevel(OptimizationLevel.Release), references: new[] { SystemCoreRef, CSharpRef }); 3229var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3276var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular6); 3318var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3380var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3439var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3464var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3491var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 3521var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll);
Semantics\PrimaryConstructorTests.cs (139)
59var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 66comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 69comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 85var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 92comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 99comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 114var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 121comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 124comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 156var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 163comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 166comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 181var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 191comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 198comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 217var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 224comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 227comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 242var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 252comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 259comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 279var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 289comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 296comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 313var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 320comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 323comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 334var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 337comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 340comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 351var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 354comp = CreateCompilation(src1, parseOptions: TestOptions.Regular12, options: TestOptions.ReleaseDll); 357comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 7790var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9360var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9415var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9474var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9516var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 9538var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 9877var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10013var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10035var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10407var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10443var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10482var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10521var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10557var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10593var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10632var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10671var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10746var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10782var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 10818var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11257var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11362var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11393var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11511var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 11905var comp = CreateCompilationWithIL(source, ilSource, options: TestOptions.ReleaseDll); 11941var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 12192var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12448var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12485var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12517var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12540var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12564var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12596var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12619var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12664var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12687var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12716var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12739var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12778var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12829var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 12870var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16062var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16083var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16108var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16126var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16152var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16178var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16196var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16214var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16240var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16266var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 16292var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16318var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16339var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 16370var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19669var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19694var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19724var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19749var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19929var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 19952var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20064var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20129var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 20164var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20467var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20501var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20814var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20846var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20878var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20910var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20932var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20954var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 20983var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21005var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21039var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21076var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21110var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21182var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21217var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21252var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21285var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21316var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21345var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21385var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21453var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21502var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21545var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21584var comp = CreateCompilation(source1 + source2 + source3, options: TestOptions.ReleaseDll); 21594comp = CreateCompilation(source2 + source1 + source3, options: TestOptions.ReleaseDll); 21626var comp = CreateCompilation(new[] { source1, source2, source3 }, options: TestOptions.ReleaseDll); 21667var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 21732var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21793var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21854var comp = CreateCompilation(source, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.NetCoreApp); 21928var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 22021var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22042var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22068var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22094var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22125var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 22147var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 22192var comp = CreateCompilation(new[] { source1, source2 }, options: TestOptions.ReleaseDll); 22258var comp = CreateCompilation(source, options: TestOptions.ReleaseDll);
Semantics\RecordTests.cs (31)
51var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 63comp = CreateCompilation(src2, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 75comp = CreateCompilation(src3, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 94comp = CreateCompilation(src1, options: TestOptions.ReleaseDll); 200var comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll); 228comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 235comp = CreateCompilation(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 2818comp = CreateCompilation(src, parseOptions: TestOptions.Regular8, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 18112var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18189var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18223var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18390var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18416var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18483var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18507var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18580var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18821var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18949var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 18972var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19020var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19093var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: modifiers == "abstract " ? TestOptions.ReleaseDll : TestOptions.ReleaseExe); 19144var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19161var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19191var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19228var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19301var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 19499var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23893var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23909var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 23929var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 30193var compB = CreateCompilation(sourceB, references: new[] { refA }, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress), parseOptions: TestOptions.Regular9, targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (20)
IOperation\IOperationTests_IArgument.cs (8)
2456var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2520var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2608var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2664var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2722var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 2807var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 3861var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll); 3956var compilation = CreateEmptyCompilation(source, options: Test.Utilities.TestOptions.ReleaseDll);
IOperation\IOperationTests_IForEachLoopStatement.cs (4)
3123VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true)); 3212VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true)); 3301VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true)); 3390VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source + TestSources.Span, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.WithAllowUnsafe(true));
IOperation\IOperationTests_INoPiaObjectCreationOperation.cs (7)
43var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 102var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 159var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 209var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 301var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 391var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll); 458var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll);
IOperation\IOperationTests_ISymbolInitializer.cs (1)
30var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (181)
Semantics\AccessCheckTests.cs (2)
1050compilationOptions: TestOptions.ReleaseDll); 1064compilationOptions: TestOptions.ReleaseDll,
Semantics\AwaitExpressionTests.cs (2)
214var comp = CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll); 242var comp = CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll);
Semantics\BetterCandidates.cs (8)
567CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 572CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 596CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 601CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 626CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 631CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 657CreateCompilationWithoutBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 662CreateCompilationWithBetterCandidates(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(
Semantics\BindingAsyncTests.cs (1)
1546TestOptions.ReleaseDll).VerifyDiagnostics(
Semantics\BindingTests.cs (2)
1965CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module => 1987CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
Semantics\ColorColorTests.cs (6)
1580var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1621var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1700var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: System.Guid.NewGuid().ToString()); 1760CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll) 1809var comp = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll);
Semantics\GenericConstraintsTests.cs (1)
2192CompileAndVerify(code, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
Semantics\ImplicitObjectCreationTests.cs (2)
1370var comp = CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 4380var signedDll = TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2);
Semantics\IndexAndRangeTests.cs (2)
1774", options: TestOptions.ReleaseDll); 1807", options: TestOptions.ReleaseDll);
Semantics\InitOnlyMemberTests.cs (2)
3467options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions( 3566options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(
Semantics\LambdaTests.cs (1)
419options: TestOptions.ReleaseDll);
Semantics\LocalFunctionTests.cs (1)
27var comp = CreateCompilationWithMscorlib461AndCSharp(source, options: TestOptions.ReleaseDll, parseOptions: DefaultParseOptions);
Semantics\LookupTests.cs (1)
37var compilation = CreateCompilationWithMscorlib461(new[] { tree }, options: TestOptions.ReleaseDll.WithUsings(globalUsings));
Semantics\MultiDimensionalArrayTests.cs (3)
421var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 441var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll); 746var compilation = CreateCompilationWithILAndMscorlib40(source, s_arraysOfRank1IlSource, options: TestOptions.ReleaseDll);
Semantics\NamedAndOptionalTests.cs (1)
1676var libComp = CreateCompilation(library, options: TestOptions.ReleaseDll, assemblyName: "Library");
Semantics\NameOfTests.cs (6)
1707var option = TestOptions.ReleaseDll; 1724var option = TestOptions.ReleaseDll; 1737var option = TestOptions.ReleaseDll; 1752var option = TestOptions.ReleaseDll; 1766var option = TestOptions.ReleaseDll; 1791var option = TestOptions.ReleaseDll;
Semantics\NativeIntegerTests.cs (4)
3489var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.Regular9); 3492comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.Regular9); 9490var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9); 12376var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(useUnsafeContext), parseOptions: TestOptions.Regular9);
Semantics\NullableContextTests.cs (4)
558var options = TestOptions.ReleaseDll; 1023var options = TestOptions.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Disable); 1051verify(new[] { source1, source2, source3, source4 }, TestOptions.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Enable), new[] { ".ctor" }, 2223var options = TestOptions.ReleaseDll;
Semantics\NullableReferenceTypesTests.cs (16)
1285var comp = CreateCompilationWithMscorlibAndSpan(source, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll); 10315var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 17888compilation = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 56037", options: WithNullableEnable(TestOptions.ReleaseDll)); 98707options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All))); 98774options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), 98845options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)), 116544CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll)).VerifyEmitDiagnostics(); 116545CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyEmitDiagnostics(); 116616var compilation1 = CreateEmptyCompilation(source1, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { MinCorlibRef }); 116632var compilation2 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MinCorlibRef }); 116645var compilation3 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MinCorlibRef }); 116656var compilation4 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference() }); 116686var compilation5 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference() }); 116724var compilation6 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.EmitToImageReference(), MscorlibRef }); 116754var compilation7 = CreateEmptyCompilation(source2, options: WithNullableEnable(TestOptions.ReleaseDll), references: new[] { compilation1.ToMetadataReference(), MscorlibRef });
Semantics\NullableTests.cs (1)
1795options: TestOptions.ReleaseDll,
Semantics\OperatorTests.cs (18)
3201var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 7483var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 7699var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 7716compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 7852var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8012var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended, options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 8549var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8584var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8599compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 8628var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8647compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 8678var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithOverflowChecks(false)); 8697compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(true)); 8743var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8808var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 8847CreateCompilation(source1, options: TestOptions.ReleaseDll).VerifyDiagnostics( 8849CreateCompilation(source1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 11454CreateCompilation(source, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
Semantics\OverloadResolutionTestBase.cs (1)
33var compilation = CreateEmptyCompilation(source, references, TestOptions.ReleaseDll);
Semantics\OverloadResolutionTests.cs (2)
8407CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 9060var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll);
Semantics\RecordStructTests.cs (6)
251var comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 264comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 270comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll); 276comp = CreateCompilation(new[] { src1, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 289comp = CreateCompilation(new[] { src2, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll); 292comp = CreateCompilation(new[] { src3, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll);
Semantics\RefEscapingTests.cs (8)
6383}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll); 6480}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 6507}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 6536}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 6724}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics(); 6742}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics(); 6760}", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics( 6822", parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), options: TestOptions.ReleaseDll).VerifyDiagnostics();
Semantics\RefFieldTests.cs (6)
5484CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(9), targetFramework: TargetFramework.Net70).VerifyDiagnostics(); 5493CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(10), targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics); 24635var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, targetFramework: TargetFramework.Net50, options: TestOptions.ReleaseDll); 26781var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26833var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll); 26885var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition }, options: TestOptions.ReleaseDll);
Semantics\SemanticErrorTests.cs (12)
2115var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() 7571CreateCompilation(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 7576CreateCompilation(text, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics( 7643CreateCompilation(text, options: TestOptions.ReleaseDll.WithNullableContextOptions(nullableContextOptions), parseOptions: TestOptions.Regular.WithStrictFeature()).VerifyDiagnostics(); 11040CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(noWarns)).VerifyDiagnostics( 12810CreateCompilation(text, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 21901options: TestOptions.ReleaseDll.WithXmlReferenceResolver(null)); 22592CreateCompilationWithMscorlib40(source, references: new[] { Net40.References.SystemCore }, options: TestOptions.ReleaseDll.WithNullableContextOptions(NullableContextOptions.Disable)).VerifyDiagnostics( 23620CreateCompilation(builder.ToString(), null, TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Suppress)).VerifyEmitDiagnostics( 24290CreateCompilationWithMscorlib461(text, new[] { NetFramework.System, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }, options: TestOptions.ReleaseDll).VerifyDiagnostics( 24612CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 24658CreateCompilationWithMscorlib461(text, options: TestOptions.ReleaseDll).VerifyDiagnostics(
Semantics\SpanStackSafetyTests.cs (2)
1930options: TestOptions.ReleaseDll); 1964options: TestOptions.ReleaseDll);
Semantics\StackAllocInitializerTests.cs (17)
579}", TestOptions.ReleaseDll); 597CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 618CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 646CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 658CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 695CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3) 707CreateCompilationWithMscorlibAndSpan(source, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular8) 1535CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1564CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1593CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1648CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1685CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 1716CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1727CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 1749CreateCompilationWithMscorlibAndSpan(test, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 1769CreateCompilationWithMscorlibAndSpan(test, TestOptions.ReleaseDll).VerifyDiagnostics( 2010}", TestOptions.ReleaseDll).VerifyDiagnostics();
Semantics\StackAllocSpanExpressionsTests.cs (10)
432CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 453CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 490CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 512CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 517CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 540CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 545CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 561CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular7_3).VerifyDiagnostics( 566CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), parseOptions: TestOptions.Regular8).VerifyDiagnostics( 722}", TestOptions.ReleaseDll).VerifyDiagnostics();
Semantics\StructsTests.cs (2)
379TestOptions.ReleaseDll); 384TestOptions.ReleaseDll);
Semantics\SuppressAccessibilityChecksTests.cs (2)
44", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 164", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
Semantics\UseSiteErrorTests.cs (10)
1033options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 1047TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 1061TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2306var compilation1 = CreateEmptyCompilation(source1, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { MinCorlibRef }); 2322var compilation2 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MinCorlibRef }); 2333var compilation3 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MinCorlibRef }); 2344var compilation4 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference() }); 2374var compilation5 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference() }); 2389var compilation6 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.EmitToImageReference(), MscorlibRef }); 2419var compilation7 = CreateEmptyCompilation(source2, parseOptions: parseOptions, options: TestOptions.ReleaseDll, references: new[] { compilation1.ToMetadataReference(), MscorlibRef });
Semantics\Utf8StringsLiteralsTests.cs (2)
3332var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll); 3384var comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.ReleaseDll);
Semantics\WarningVersionTests.cs (17)
48CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 49CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(3)).VerifyDiagnostics(); 50CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 51CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 52CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)).VerifyDiagnostics(whenWave5); 78CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 79CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 80CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 117CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics(); 118CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)).VerifyDiagnostics(); 119CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(whenWave5); 392CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 394CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 683CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 685CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics( 713CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(CodeAnalysis.Diagnostic.DefaultWarningLevel)).VerifyDiagnostics( 715CreateCompilation(source2, references: new MetadataReference[] { moduleReference }, options: TestOptions.ReleaseDll.WithWarningLevel(5)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (419)
BadSymbolReference.cs (18)
840}", options: TestOptions.ReleaseDll, assemblyName: "MissingTypeInTypeArgumentsOfImplementedInterface1"); 850}", new[] { lib1Ref }, TestOptions.ReleaseDll, assemblyName: "MissingTypeInTypeArgumentsOfImplementedInterface2"); 865}", new[] { lib1Ref, lib2Ref }, TestOptions.ReleaseDll, assemblyName: "MissingTypeInTypeArgumentsOfImplementedInterface3"); 935var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1006lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref }, TestOptions.ReleaseDll); 1010lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() }, TestOptions.ReleaseDll); 1029", options: TestOptions.ReleaseDll, assemblyName: "MissingImplementedInterface1"); 1051", new[] { lib1Ref }, TestOptions.ReleaseDll, assemblyName: "MissingImplementedInterface2"); 1077", new[] { lib1Ref, lib2Ref }, TestOptions.ReleaseDll, assemblyName: "MissingImplementedInterface3"); 1155var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1238lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref }, TestOptions.ReleaseDll); 1249lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() }, TestOptions.ReleaseDll); 1314}", options: TestOptions.ReleaseDll, assemblyName: "MissingBaseClass1"); 1323}", new[] { lib1Ref }, TestOptions.ReleaseDll, assemblyName: "MissingBaseClass2"); 1332}", new[] { lib1Ref, lib2Ref }, TestOptions.ReleaseDll, assemblyName: "MissingBaseClass3"); 1377var lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib3Ref }, TestOptions.ReleaseDll); 1424lib4 = CreateCompilation(lib4Def, new[] { lib1Ref, lib2Ref, lib3Ref }, TestOptions.ReleaseDll); 1428lib4 = CreateCompilation(lib4Def, new[] { lib1.EmitToImageReference(), lib3.EmitToImageReference() }, TestOptions.ReleaseDll);
Compilation\CompilationAPITests.cs (45)
230CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)).VerifyDiagnostics( 254CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("")).VerifyDiagnostics( 263CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("\"\"")).VerifyDiagnostics( 444var comp = CSharpCompilation.Create("Compilation", options: TestOptions.ReleaseDll); 589var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 613options: TestOptions.ReleaseDll, 621options: TestOptions.ReleaseDll, 632options: TestOptions.ReleaseDll, 681options: TestOptions.ReleaseDll, 689options: TestOptions.ReleaseDll, 700options: TestOptions.ReleaseDll, 791var comp = CSharpCompilation.Create("Compilation", syntaxTrees: new[] { SyntaxFactory.ParseSyntaxTree(s1) }, options: TestOptions.ReleaseDll); 938CSharpCompilation comp = CSharpCompilation.Create(options: TestOptions.ReleaseDll, assemblyName: "Compilation", references: null, syntaxTrees: null); 964CSharpCompilation comp1 = CSharpCompilation.Create(assemblyName: "Compilation", syntaxTrees: null, options: TestOptions.ReleaseDll, references: null); 1377var opt = TestOptions.ReleaseDll; 1657var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll); 1698compilation = CSharpCompilation.Create(assemblyName: null, options: TestOptions.ReleaseDll, syntaxTrees: new[] { Parse(source) }, references: new[] { MscorlibRef }); 1967var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 1972c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication)); 1975c2 = c1.WithOptions(TestOptions.ReleaseDll); 1978c2 = c1.WithOptions(TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 1986c2 = c1.WithOptions(TestOptions.ReleaseDll); 1999var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 2001var c2 = c1.WithOptions(TestOptions.ReleaseDll.WithMetadataReferenceResolver(new TestMetadataReferenceResolver())); 2005var c3 = c1.WithOptions(TestOptions.ReleaseDll.WithMetadataReferenceResolver(c1.Options.MetadataReferenceResolver)); 2012var c1 = CSharpCompilation.Create("c", options: TestOptions.ReleaseDll); 2014var c2 = c1.WithOptions(TestOptions.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(null))); 2017var c3 = c1.WithOptions(TestOptions.ReleaseDll.WithXmlReferenceResolver(c1.Options.XmlReferenceResolver)); 2237var c = CSharpCompilation.Create("Goo", references: new[] { MscorlibRef, mdModule.GetReference(display: "ModuleCS00") }, options: TestOptions.ReleaseDll); 2258options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2279options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(comparer)); 2294options: TestOptions.ReleaseDll); 2315options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2340options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(comparer)); 2417Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule))); 2418Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeMetadata))); 2419Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsRuntimeApplication))); 2420Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.WindowsApplication))); 2421Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithCryptoKeyContainer("goo"))); 2422Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithCryptoKeyFile("goo.snk"))); 2423Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithDelaySign(true))); 2424Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithDelaySign(false))); 2903}", options: TestOptions.ReleaseDll.WithOverflowChecks(true)); 3094var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3134var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule));
Compilation\CSharpCompilationOptionsTests.cs (7)
252Assert.Null(TestOptions.ReleaseDll.WithModuleName(null).ModuleName); 253TestOptions.ReleaseDll.WithModuleName("").VerifyErrors( 258TestOptions.ReleaseDll.WithModuleName("a\0a").VerifyErrors( 263TestOptions.ReleaseDll.WithModuleName("a\uD800b").VerifyErrors( 268TestOptions.ReleaseDll.WithModuleName("a\\b").VerifyErrors( 273TestOptions.ReleaseDll.WithModuleName("a/b").VerifyErrors( 278TestOptions.ReleaseDll.WithModuleName("a:b").VerifyErrors(
Compilation\GetUnusedImportDirectivesTests.cs (5)
223options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()), 244options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()), 291comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(3)); 317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(0)); 379var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error));
Compilation\ReferenceManagerTests.cs (44)
27TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_ce65828c82a341f2); 690options: TestOptions.ReleaseDll); 869options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 930var compilation = CSharpCompilation.Create("goo", options: TestOptions.ReleaseDll, 1021TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 1035var peImage = CreateCompilation(libSource, options: TestOptions.ReleaseDll, assemblyName: "CS1704").EmitToArray(); 1280options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 1319var options = TestOptions.ReleaseDll.WithMetadataReferenceResolver(new ErroneousReferenceResolver()); 1361var c = CreateCompilationWithMscorlib461(new[] { t1, t2 }, options: TestOptions.ReleaseDll.WithMetadataReferenceResolver( 1448var withCircularReference2 = withCircularReference1.WithOptions(TestOptions.ReleaseDll); 1836var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1837var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1838var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1840var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1841var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1842var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1868var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1873var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1878var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1894var main = CreateEmptyCompilation(mainSource, new MetadataReference[] { r1, MscorlibFacadeRef }, options: TestOptions.ReleaseDll); 2168options: TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a), 2175options: TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a), 2185options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2195options: TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)); 2327TestOptions.ReleaseDll.WithMetadataReferenceResolver( 2356TestOptions.ReleaseDll.WithMetadataReferenceResolver( 2399}, TestOptions.ReleaseDll); 2435}, TestOptions.ReleaseDll); 2473}, TestOptions.ReleaseDll); 2512}, TestOptions.ReleaseDll); 2535var c = CreateCompilationWithMscorlib46("public class C : A { }", new[] { aRef }, TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2564", new[] { aRef }, TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2602TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2646TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2682TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2709TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2725TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2753TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2778TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 2810TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolver)); 3017TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolverC)); 3129TestOptions.ReleaseDll.WithMetadataReferenceResolver(resolverC)); 3171var options = TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default); 3214var options = TestOptions.ReleaseDll.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
14965", options: TestOptions.ReleaseDll);
Compilation\UsedAssembliesTests.cs (1)
294options ??= TestOptions.ReleaseDll;
DeclarationTests.cs (3)
263options: TestOptions.ReleaseDll); 290var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll); 337var compilation = CreateCompilation(new SyntaxTree[] { underlyingTree, countedTree }, skipUsesIsNullable: true, options: TestOptions.ReleaseDll);
DocumentationComments\CrefTests.cs (3)
5875TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default)); 6918var options = TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default); 6942var options = TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default);
DocumentationComments\DocumentationCommentCompilerTests.cs (5)
36options: (options ?? TestOptions.ReleaseDll).WithXmlReferenceResolver(XmlFileResolver.Default), 3660var comp = CSharpCompilation.Create("Test", new[] { tree }, new[] { MscorlibRef }, TestOptions.ReleaseDll.WithXmlReferenceResolver(resolver)); 5760var comp = CreateCompilation(tree, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(warnDict), assemblyName: "Test"); 7116var compOptions = TestOptions.ReleaseDll.WithGeneralDiagnosticOption(ReportDiagnostic.Error); 7357options: TestOptions.ReleaseDll.WithSourceReferenceResolver(SourceFileResolver.Default).WithXmlReferenceResolver(XmlFileResolver.Default),
DocumentationComments\DocumentationCommentIDTests.cs (1)
270var comp = CreateCompilation(source, options: TestOptions.ReleaseDll);
DocumentationComments\DocumentationModeTests.cs (1)
385options: TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default),
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
827options: TestOptions.ReleaseDll);
Symbols\AnonymousTypesSemanticsTests.cs (1)
2085options: TestOptions.ReleaseDll,
Symbols\AnonymousTypesSymbolTests.cs (1)
1452var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), parseOptions: TestOptions.Regular);
Symbols\CompilationCreationTests.cs (6)
2703options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(new Resolver(data, core, system))); 2739options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(new Resolver(data, core, system))); 2784options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(new DummyReferenceResolver(csClasses01))); 2794options: TestOptions.ReleaseDll.WithMetadataReferenceResolver(null)); 2821options: TestOptions.ReleaseDll.WithUsings(ImmutableArray.Create("System.Console", "System"))); 2843options: TestOptions.ReleaseDll.WithUsings("System.Console!", "Blah"));
Symbols\CorLibrary\Choosing.cs (4)
39", options: TestOptions.ReleaseDll); 50", new[] { new CSharpCompilationReference(corLib) }, options: TestOptions.ReleaseDll); 65", options: TestOptions.ReleaseDll); 71", new[] { new CSharpCompilationReference(corLib) }, options: TestOptions.ReleaseDll);
Symbols\CovariantReturnTests.cs (1)
515options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions("CS1701", ReportDiagnostic.Suppress),
Symbols\CustomModifiersTests.cs (7)
1514var compilation1 = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1564var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1603var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1642var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1674var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1713var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll); 1755var compilation = CreateCompilationWithILAndMscorlib40(source, ilSource, options: TestOptions.ReleaseDll);
Symbols\DefaultInterfaceImplementationTests.cs (22)
50361var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50369var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50397var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50409var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50438var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50450var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50478var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50490var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50518var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50530var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50562var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50577var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50606var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50622var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50); 50658var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50670var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }, targetFramework: TargetFramework.Net50); 50683var attributes = CreateCompilation(NoPiaAttributes, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50711var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.Empty); 50749var pia2Compilation = CreateCompilation(pia2, baseReferences, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Empty); 50753var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, references: baseReferences.Concat(new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }), targetFramework: TargetFramework.Empty); 50791var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.Net50); 50807var compilation1 = CreateCompilation(consumer, options: TestOptions.ReleaseDll, references: new[] { reference }, targetFramework: TargetFramework.Net50);
Symbols\ExtendedPartialMethodsTests.cs (20)
2726var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2732comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2770var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2773comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2798var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 2807comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3102var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3105comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3129var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3132comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3210var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3234comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6), parseOptions: TestOptions.RegularWithExtendedPartialMethods); 3317var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3320comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3355var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3373comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3416var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3419comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6)); 3457var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(5)); 3460comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(6));
Symbols\ExtensionMethodTests.cs (6)
57CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2476options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2522var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 3447var compilation = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 }, TestOptions.ReleaseDll); 4044CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll); 4074CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll);
Symbols\GenericConstraintTests.cs (3)
5633CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 7329TestOptions.ReleaseDll.WithPublicSign(true)); 7335TestOptions.ReleaseDll.WithPublicSign(true));
Symbols\IndexerTests.cs (1)
70options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\InterfaceImplementationTests.cs (4)
969options: TestOptions.ReleaseDll); 975options: TestOptions.ReleaseDll); 1892var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 1896var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2");
Symbols\Metadata\MetadataMemberTests.cs (2)
619var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll); 659var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll);
Symbols\Metadata\MetadataTypeTests.cs (3)
117var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 217options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 284options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\BaseTypeResolution.cs (3)
337var compilation1 = CreateCompilation(compilationDef1, new MetadataReference[] { crossRefLib }, TestOptions.ReleaseDll); 357var compilation2 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule1, crossRefModule2 }, TestOptions.ReleaseDll); 369var compilation3 = CreateCompilation(compilationDef2, new MetadataReference[] { crossRefModule2 }, TestOptions.ReleaseDll);
Symbols\Metadata\PE\LoadingFields.cs (1)
29options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\LoadingMethods.cs (1)
36options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\TypeForwarders.cs (18)
1462var comp1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, assemblyName: "Asm1"); 1466var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "Asm2"); 1537var bitsA = CreateCompilation(moduleA, options: TestOptions.ReleaseDll, assemblyName: "asm2").EmitToArray(); 1548var bits1 = CreateCompilation(module1, new[] { ref0 }, options: TestOptions.ReleaseDll, assemblyName: "asm1").EmitToArray(); 1552var bits2 = CreateCompilation(module2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2").EmitToArray(); 1611var forwardedTypesCompilation = CreateCompilation(forwardedTypes, options: TestOptions.ReleaseDll, assemblyName: "ForwarderTargetAssembly"); 1628var appCompilation = CreateCompilation(app, references: new[] { modRef1, new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll); 1684appCompilation = CreateCompilation(app, references: new MetadataReference[] { modRef2, new CSharpCompilationReference(forwardedTypesCompilation) }, options: TestOptions.ReleaseDll); 1715appCompilation = CreateCompilation(app, references: new[] { modRef1 }, options: TestOptions.ReleaseDll); 1731var comp1 = CreateCompilation(source1, new[] { ref0 }, options: TestOptions.ReleaseDll, assemblyName: "asm1"); 1738var comp2 = CreateCompilation(source2, new[] { ref1 }, options: TestOptions.ReleaseDll, assemblyName: "asm2"); 1827", options: TestOptions.ReleaseDll, assemblyName: "A"); 1833", new[] { new CSharpCompilationReference(cA_v1) }, options: TestOptions.ReleaseDll, assemblyName: "B"); 1841", options: TestOptions.ReleaseDll, assemblyName: "C"); 1847", new[] { new CSharpCompilationReference(cC_v1) }, options: TestOptions.ReleaseDll, assemblyName: "A"); 1857var cA_v3 = CreateCompilation(@"", new[] { cD_ImageRef, new CSharpCompilationReference(cC_v1) }, options: TestOptions.ReleaseDll, assemblyName: "A"); 1863", options: TestOptions.ReleaseDll, assemblyName: "C"); 1891var context = CreateCompilation("", new[] { r1, r2, r3 }, options: TestOptions.ReleaseDll);
Symbols\MissingSpecialMember.cs (4)
37var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 69var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 101var comp = CreateCompilation(source, options: TestOptions.ReleaseDll); 124var comp = CreateEmptyCompilation(source, new[] { Net40.References.mscorlib }, options: TestOptions.ReleaseDll);
Symbols\OverriddenOrHiddenMembersTests.cs (9)
1186options: TestOptions.ReleaseDll); 1227options: TestOptions.ReleaseDll); 1255CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 1269CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1317CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1416CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1551CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics(); 1565CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics( 1615CreateCompilation(text1, references: refs, options: TestOptions.ReleaseDll).VerifyDiagnostics(
Symbols\Retargeting\NoPia.cs (72)
283var LocalTypes1 = CreateEmptyCompilation(s_sourceLocalTypes1_IL, new[] { MscorlibRef }, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 286var LocalTypes2 = CreateEmptyCompilation(s_sourceLocalTypes2_IL, new[] { MscorlibRef }, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 352var LocalTypes1 = CreateCompilationWithMscorlib40(s_sourceLocalTypes1_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 355var LocalTypes2 = CreateCompilationWithMscorlib40(s_sourceLocalTypes2_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 649var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 654var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 950var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1", targetFramework: TargetFramework.Standard); 953var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 958var LocalTypes2 = CreateCompilation(s_sourceLocalTypes2, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 1258var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1"); 1283var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1308var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1313var LocalTypes1 = CreateCompilation(s_sourceLocalTypes1, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes1", 1335var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3_IL, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3"); 1405var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, assemblyName: "comp"); 1451var comp = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, assemblyName: "comp"); 1490var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1532var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1536var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1571var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1586var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1590var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1624var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1639var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1643var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1668var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1681var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1685var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1718var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1736var comp1 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1740var comp2 = CreateCompilation(source, options: TestOptions.ReleaseDll, 1773var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1776var lib = CreateCompilationWithMscorlib46(libSource, options: TestOptions.ReleaseDll, references: new[] { pia.ToMetadataReference() }); 1804var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1808var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1826var pia = CreateCompilationWithMscorlib46(piaSource, options: TestOptions.ReleaseDll, assemblyName: "pia"); 1849var comp1 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1866var comp2 = CreateCompilationWithMscorlib46(source, options: TestOptions.ReleaseDll, 1887var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 1934var Pia1 = CreateCompilation(s_sourcePia1, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 1937var LocalTypes3 = CreateCompilation(s_sourceLocalTypes3, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes3", 2015var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2041var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2046var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2061compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2076compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2091compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2140var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2166var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2171var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2186compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2201compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2216compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2265var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2291var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2296var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2311compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2326compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2341compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2381var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2403var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2", 2408var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2423compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2473var localTypes2 = CreateCompilation(source, options: TestOptions.ReleaseDll, assemblyName: "LocalTypes2"); 2499var pia = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia"); 2504var compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2519compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2534compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2549compilation = CreateCompilation("", options: TestOptions.ReleaseDll, 2586var pia1 = CreateCompilation(piaSource, options: TestOptions.ReleaseDll, assemblyName: "Pia1"); 2602var multiModule = CreateCompilation("", options: TestOptions.ReleaseDll, 2617var consumer = CreateCompilation(consumerSource, options: TestOptions.ReleaseDll,
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
69var compilation1 = CSharpCompilation.Create("C1", new[] { Parse(source) }, new[] { OldMsCorLib }, TestOptions.ReleaseDll);
Symbols\Retargeting\RetargetingTests.cs (2)
730var comp1 = CreateEmptyCompilation(source, new[] { MscorlibRef_v20 }, TestOptions.ReleaseDll); 735var comp2 = CreateEmptyCompilation("", new[] { MscorlibRef_v4_0_30316_17626, new CSharpCompilationReference(comp1) }, TestOptions.ReleaseDll);
Symbols\Source\ClsComplianceTests.cs (13)
397CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 405CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 499CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 586CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll).VerifyDiagnostics( 644var compCompliant = CreateCompilationWithMscorlib46(source, new[] { libCompliant }, TestOptions.ReleaseDll); 652var compNotCompliant = CreateCompilationWithMscorlib46(source, new[] { libNotCompliant }, TestOptions.ReleaseDll); 689CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 736CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics( 810CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 840CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics( 1364CreateCompilation(source, options: TestOptions.ReleaseDll.WithNullableContextOptions(nullableContextOptions)).VerifyDiagnostics( 3879var comp2 = CreateCompilation(source2, new[] { comp1.EmitToImageReference() }, TestOptions.ReleaseDll.WithConcurrentBuild(false)); 3885comp2.WithOptions(TestOptions.ReleaseDll.WithConcurrentBuild(true)).VerifyDiagnostics(
Symbols\Source\ExternAliasTests.cs (5)
37var comp = CreateCompilation(src, assemblyName: "Goo1", options: TestOptions.ReleaseDll); 62var comp = CreateCompilation(src, assemblyName: "Goo2", options: TestOptions.ReleaseDll); 214var comp = CreateCompilation(src, assemblyName: "Baz.dll", options: TestOptions.ReleaseDll); 229comp = CreateCompilation(src, assemblyName: "Bar.dll", options: TestOptions.ReleaseDll); 316var comp = CreateCompilation(src, options: TestOptions.ReleaseDll);
Symbols\Source\PropertyTests.cs (4)
789var compilation = CompileWithCustomPropertiesAssembly(source, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2581return CreateCompilation(source, new[] { s_propertiesDll }, options ?? TestOptions.ReleaseDll); 2780options: winmd ? TestOptions.ReleaseWinMD : TestOptions.ReleaseDll); 2822var comp = CreateCompilation(libSrc, options: TestOptions.ReleaseDll);
Symbols\Source\RecordTests.cs (1)
1214var comp = CreateCompilation(src, options: TestOptions.ReleaseDll);
Symbols\StaticAbstractMembersInInterfacesTests.cs (25)
8424compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 8773compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 8906compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 9335compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 9680compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10540compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10645compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 10882compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11063compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11267compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11478compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11710compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 11834compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 12068compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13160compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13246compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 13355compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 14056compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 14687compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 15099compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 15369compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll.WithAllowUnsafe(true), 30146compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30212compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30398compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll, 30869compilation1 = CreateCompilation(source1, options: TestOptions.ReleaseDll,
Symbols\SymbolErrorTests.cs (41)
108options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedField), ReportDiagnostic.Suppress } }), 3158var c = CreateCompilation(text, options: TestOptions.ReleaseDll.WithAllowUnsafe(false)); 5653var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5714var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5774var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5835var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5895var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 5952var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6011var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6070var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6267var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6327var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6389var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6449var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6511var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6574var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6637var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6708var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6771var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 6840var lib = CreateCompilation(libSource, assemblyName: "Lib", options: TestOptions.ReleaseDll); 7146}, TestOptions.ReleaseDll); 7236}, TestOptions.ReleaseDll); 7265var forwardedTypes1 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes1"); 7268var forwardedTypes2 = CreateCompilation(forwardedTypesSource, options: TestOptions.ReleaseDll, assemblyName: "ForwardedTypes2"); 7311}, TestOptions.ReleaseDll); 7324}, TestOptions.ReleaseDll); 7334}, TestOptions.ReleaseDll); 7344}, TestOptions.ReleaseDll); 7363}, TestOptions.ReleaseDll); 7377}, TestOptions.ReleaseDll); 7391}, TestOptions.ReleaseDll); 7405}, TestOptions.ReleaseDll); 7416}, TestOptions.ReleaseDll); 11300CreateCompilation(text, options: TestOptions.ReleaseDll).VerifyDiagnostics( 13378var regularComp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithWarningLevel(4)); 13804comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithWarningLevel(4)); 15455var comp = CreateCompilation(text, options: TestOptions.ReleaseDll); 20381", options: TestOptions.ReleaseDll, assemblyName: "Bug7920_CS"); 20386", new[] { new CSharpCompilationReference(comp1) }, options: TestOptions.ReleaseDll); 20400var comp3 = CreateCompilation(source3, new[] { new CSharpCompilationReference(comp2) }, options: TestOptions.ReleaseDll); 20404var comp4 = CreateCompilation(source3, new[] { comp2.EmitToImageReference() }, options: TestOptions.ReleaseDll);
Symbols\TypeTests.cs (3)
807TestOptions.ReleaseDll.WithCryptoPublicKey(TestResources.TestKeys.PublicKey_b03f5f7f11d50a3a), 818TestOptions.ReleaseDll.WithUsings("System.Console")); 831TestOptions.ReleaseDll.WithUsings("System.Console").WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (1)
2874var ca = CreateCompilation(source, options: TestOptions.ReleaseDll.WithStrongNameProvider(new DesktopStrongNameProvider()).WithCryptoKeyContainer("bogus"));
Parsing\ParserErrorMessageTests.cs (2)
4759CreateCompilationWithMscorlibAndSpan(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics( 4780CreateCompilation(test, options: TestOptions.ReleaseDll.WithAllowUnsafe(true)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (14)
CSharpTestBase.cs (9)
794return (options ?? TestOptions.ReleaseDll).WithNullableContextOptions(nullableContextOptions); 888options = options ?? TestOptions.ReleaseDll.WithOutputKind((expectedOutput != null) ? OutputKind.ConsoleApplication : OutputKind.DynamicallyLinkedLibrary); 1233options = (options ?? TestOptions.ReleaseDll).WithXmlReferenceResolver(XmlFileResolver.Default); 1339var options = hasTopLevelStatements ? TestOptions.ReleaseExe : TestOptions.ReleaseDll; 1443Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.Create(identity.Name, options: options ?? TestOptions.ReleaseDll, references: references, syntaxTrees: trees); 1499var compilationOptions = (expectedOutput != null) ? TestOptions.ReleaseExe : TestOptions.ReleaseDll; 2062var compilation = CreateCompilation(testSrc, targetFramework: targetFramework, options: compilationOptions ?? TestOptions.ReleaseDll, parseOptions: parseOptions); 2605new object[] { WithNullableEnable(TestOptions.ReleaseDll) }, 2606new object[] { WithNullableDisable(TestOptions.ReleaseDll) }
DiagnosticTestUtilities.cs (1)
85var comp = CSharpCompilation.Create(assemblyName: "DiagnosticsTest", options: TestOptions.ReleaseDll, syntaxTrees: synTrees, references: refs);
MetadataTestHelpers.cs (1)
71var tc1 = CSharpCompilation.Create(assemblyName: "Dummy", options: options ?? TestOptions.ReleaseDll, syntaxTrees: new SyntaxTree[0], references: refs);
TestOptions.cs (3)
75public static readonly CSharpCompilationOptions ReleaseDebugDll = ReleaseDll.WithDebugPlusMode(true); 91public static readonly CSharpCompilationOptions UnsafeReleaseDll = ReleaseDll.WithAllowUnsafe(true); 97public static readonly CSharpCompilationOptions SigningReleaseDll = ReleaseDll.WithStrongNameProvider(SigningTestHelpers.DefaultDesktopStrongNameProvider);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (3)
Metadata\WinMdDumpTest.cs (1)
444var comp = CreateEmptyCompilation("", references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All));
PdbTests.cs (2)
21var comp = CSharpCompilation.Create("Compilation", options: TestOptions.ReleaseDll); 119var ops = TestOptions.ReleaseDll;