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