265 references to CreateCompilationWithMscorlib46
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (122)
CodeGen\CodeGenAsyncSpillTests.cs (1)
3473
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe);
CodeGen\CodeGenAwaitForeachTests.cs (71)
224
var comp =
CreateCompilationWithMscorlib46
(source);
252
var comp =
CreateCompilationWithMscorlib46
(source);
280
var comp =
CreateCompilationWithMscorlib46
(source);
322
var comp =
CreateCompilationWithMscorlib46
(source);
353
var comp =
CreateCompilationWithMscorlib46
(source);
382
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: useCsharp8 ? TestOptions.Regular8 : TestOptions.Regular9);
423
var comp =
CreateCompilationWithMscorlib46
(source);
459
var comp =
CreateCompilationWithMscorlib46
(source);
489
var comp =
CreateCompilationWithMscorlib46
(source);
517
var comp =
CreateCompilationWithMscorlib46
(source);
547
var comp =
CreateCompilationWithMscorlib46
(source);
581
var comp =
CreateCompilationWithMscorlib46
(source);
611
var comp =
CreateCompilationWithMscorlib46
(source);
742
var comp =
CreateCompilationWithMscorlib46
(source);
778
var comp =
CreateCompilationWithMscorlib46
(source);
816
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe);
851
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe);
1356
var comp =
CreateCompilationWithMscorlib46
(source);
1389
var comp =
CreateCompilationWithMscorlib46
(source);
1425
var comp =
CreateCompilationWithMscorlib46
(source);
1458
var comp =
CreateCompilationWithMscorlib46
(source);
1485
var comp =
CreateCompilationWithMscorlib46
(source);
5645
var comp =
CreateCompilationWithMscorlib46
(source);
5673
var comp =
CreateCompilationWithMscorlib46
(source);
6433
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6476
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6506
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6536
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6568
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
6754
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6789
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6820
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6852
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6882
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9)
6951
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
6982
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7012
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7043
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7073
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7103
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7133
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7270
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
7308
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
7352
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7388
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
7509
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
7629
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7749
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7825
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7896
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7963
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
7993
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
8026
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
8059
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9);
8099
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
8132
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion));
8162
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular8);
8195
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8225
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8337
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8374
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8407
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8573
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8620
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8653
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular9)
8687
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8738
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8787
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8932
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
8967
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
9037
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\CodeGenAwaitUsingTests.cs (2)
631
var comp =
CreateCompilationWithMscorlib46
(source);
670
var comp =
CreateCompilationWithMscorlib46
(source);
CodeGen\CodeGenExprLambdaTests.cs (1)
865
CreateCompilationWithMscorlib46
(new[] { Parse(source), Parse(ExpressionTestLibrary) }, new[] { ExpressionAssemblyRef }).VerifyDiagnostics(
CodeGen\CodeGenForEachTests.cs (1)
4446
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular8);
CodeGen\CodeGenInParametersTests.cs (14)
1528
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
1570
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
1751
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe);
1837
comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
1876
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
1936
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
2004
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
2066
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
2123
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
2183
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
2262
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
2277
comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
2343
var comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe);
2430
comp =
CreateCompilationWithMscorlib46
(text, new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.WithPEVerifyCompatFeature());
CodeGen\CodeGenLocalFunctionTests.cs (5)
332
var comp =
CreateCompilationWithMscorlib46
(@"
373
var comp =
CreateCompilationWithMscorlib46
(@"
397
comp =
CreateCompilationWithMscorlib46
(@"
429
comp =
CreateCompilationWithMscorlib46
(@"
1049
var comp =
CreateCompilationWithMscorlib46
(@"
CodeGen\CodeGenTupleTest.cs (8)
7328
CreateCompilationWithMscorlib46
(source).VerifyDiagnostics(
15416
var lib =
CreateCompilationWithMscorlib46
(tuple, options: TestOptions.ReleaseDll);
15419
var consumer1 =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() });
15422
var consumer2 =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() });
15677
var lib =
CreateCompilationWithMscorlib46
(tuple, options: TestOptions.ReleaseDll);
15680
var consumer1 =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe, references: new[] { lib.ToMetadataReference() });
15683
var consumer2 =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe, references: new[] { lib.EmitToImageReference() });
17123
var comp =
CreateCompilationWithMscorlib46
(source,
CodeGen\UnsafeTests.cs (15)
4272
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2);
4482
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
4534
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
4581
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
4619
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5172
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5214
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5253
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular7_2);
5289
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5325
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5361
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5400
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5474
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5502
var comp =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
5619
var compVerifier =
CreateCompilationWithMscorlib46
(text, options: TestOptions.UnsafeReleaseExe);
Emit\BinaryCompatibility.cs (4)
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();
69
var compilation =
CreateCompilationWithMscorlib46
(program, references: new[] { lib1Image, clientImage }, options: TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Attributes\AttributeTests.cs (10)
511
var comp =
CreateCompilationWithMscorlib46
(@"
539
var comp =
CreateCompilationWithMscorlib46
(@"
561
var comp =
CreateCompilationWithMscorlib46
(@"
1077
var comp =
CreateCompilationWithMscorlib46
(@"
1157
var comp =
CreateCompilationWithMscorlib46
(@"
1197
var comp =
CreateCompilationWithMscorlib46
(@"
1236
var comp =
CreateCompilationWithMscorlib46
(@"
1275
var comp =
CreateCompilationWithMscorlib46
(@"
1313
var comp =
CreateCompilationWithMscorlib46
(@"
10090
CreateCompilationWithMscorlib46
(code).VerifyDiagnostics(
Attributes\AttributeTests_Dynamic.cs (4)
562
var comp =
CreateCompilationWithMscorlib46
(s_dynamicTestSource, references: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.UnsafeReleaseDll);
967
var customRef =
CreateCompilationWithMscorlib46
(customDynamicAttrSource).ToMetadataReference();
974
var comp =
CreateCompilationWithMscorlib46
(source, references: new[] { customRef });
986
comp =
CreateCompilationWithMscorlib46
(source, references: new[] { customRef });
Attributes\AttributeTests_Security.cs (2)
1679
CreateCompilationWithMscorlib46
(source).GetDiagnostics();
1697
CreateCompilationWithMscorlib46
(source).VerifyDiagnostics(
Attributes\AttributeTests_WellKnownAttributes.cs (3)
4966
var lib =
CreateCompilationWithMscorlib46
(missing, assemblyName: "missing");
4968
var comp =
CreateCompilationWithMscorlib46
(source, references: new[] { lib.EmitToImageReference() });
4970
var comp2 =
CreateCompilationWithMscorlib46
(errors, references: new[] { comp.EmitToImageReference() });
FlowAnalysis\LocalFunctions.cs (2)
408
var comp =
CreateCompilationWithMscorlib46
(@"
446
var comp =
CreateCompilationWithMscorlib46
(@"
Semantics\ParamsCollectionTests.cs (1)
15530
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IForEachLoopStatement.cs (1)
6654
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (53)
Semantics\LocalFunctionTests.cs (14)
92
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe);
149
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe);
181
var comp =
CreateCompilationWithMscorlib46
(source);
242
var comp =
CreateCompilationWithMscorlib46
(source);
297
var comp =
CreateCompilationWithMscorlib46
(source, options: TestOptions.ReleaseExe);
325
var comp =
CreateCompilationWithMscorlib46
(source);
2654
var comp =
CreateCompilationWithMscorlib46
(@"
4265
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe);
4476
var comp =
CreateCompilationWithMscorlib46
(@"
4781
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe);
4813
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe);
4846
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe);
4879
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe);
4916
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: DefaultParseOptions, options: TestOptions.DebugExe);
Semantics\NullableReferenceTypesTests.cs (3)
83102
var comp =
CreateCompilationWithMscorlib46
(new[] { source }, options: WithNullableEnable());
83150
var comp =
CreateCompilationWithMscorlib46
(new[] { source }, options: WithNullableEnable());
83190
var comp =
CreateCompilationWithMscorlib46
(source);
Semantics\RefLocalsAndReturnsTests.cs (34)
1237
var comp =
CreateCompilationWithMscorlib46
(@"
3553
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3574
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3597
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3618
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3645
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3670
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3692
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3714
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3734
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3754
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3810
CreateCompilationWithMscorlib46
(text).VerifyEmitDiagnostics(
3862
CreateCompilationWithMscorlib46
(text).VerifyEmitDiagnostics();
3878
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3898
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3917
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3937
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3958
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
3979
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4002
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4025
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4047
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4074
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4099
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4120
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4141
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4165
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4188
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4207
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4227
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4246
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4265
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4284
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
4323
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
Semantics\TargetTypedDefaultTests.cs (2)
66
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular7);
660
var comp =
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular7_1);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (62)
Compilation\ReferenceManagerTests.cs (23)
2527
var bRef =
CreateCompilationWithMscorlib46
("public class B { }", assemblyName: "B").EmitToImageReference();
2528
var aRef =
CreateCompilationWithMscorlib46
("public class A : B { }", new[] { bRef }, assemblyName: "A").EmitToImageReference();
2549
var bRef =
CreateCompilationWithMscorlib46
("public class B { }", assemblyName: "B").EmitToImageReference();
2550
var aRef =
CreateCompilationWithMscorlib46
("public class A : B { }", new[] { bRef }, assemblyName: "A").EmitToImageReference();
2703
var dRef =
CreateCompilationWithMscorlib46
("public interface D { }", assemblyName: "D").EmitToImageReference();
2704
var aRef =
CreateCompilationWithMscorlib46
("public interface A : D { }", new[] { dRef }, assemblyName: "A").ToMetadataReference();
2719
var dRef =
CreateCompilationWithMscorlib46
("public interface D { }", assemblyName: "D").EmitToImageReference();
2720
var aRef =
CreateCompilationWithMscorlib46
("public interface A : D { }", new[] { dRef }, assemblyName: "A").ToMetadataReference();
2742
var bRef =
CreateCompilationWithMscorlib46
("public interface D { }", assemblyName: "B").EmitToImageReference();
2743
var aRef =
CreateCompilationWithMscorlib46
("public interface A : D { }", new[] { bRef }, assemblyName: "A").ToMetadataReference();
2745
var eRef =
CreateCompilationWithMscorlib46
("public interface E { }", assemblyName: "E").ToMetadataReference();
2768
var dRef =
CreateCompilationWithMscorlib46
("public interface D { }", assemblyName: "D").EmitToImageReference();
2769
var aRef =
CreateCompilationWithMscorlib46
("public interface A : D { }", new[] { dRef }, assemblyName: "A").ToMetadataReference();
2770
var bRef =
CreateCompilationWithMscorlib46
("public interface B : D { }", new[] { dRef }, assemblyName: "B").ToMetadataReference();
2795
var bRef =
CreateCompilationWithMscorlib46
("public interface B { }", assemblyName: "B").EmitToImageReference();
2796
var dRef =
CreateCompilationWithMscorlib46
("public interface D { }", assemblyName: "D").EmitToImageReference();
2798
var mRef =
CreateCompilationWithMscorlib46
("public interface M : B { }", new[] { bRef }, options: TestOptions.ReleaseModule.WithModuleName("M.netmodule")).EmitToImageReference();
2799
var nRef =
CreateCompilationWithMscorlib46
("public interface N : D { }", new[] { dRef }, options: TestOptions.ReleaseModule.WithModuleName("N.netmodule")).EmitToImageReference();
2801
var aRef =
CreateCompilationWithMscorlib46
("public interface A : D { }", new[] { dRef }, assemblyName: "A").EmitToImageReference();
2832
var b1Ref =
CreateCompilationWithMscorlib46
(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class B { }", options: s_signedDll, assemblyName: "B").EmitToImageReference();
2833
var b2Ref =
CreateCompilationWithMscorlib46
(@"[assembly: System.Reflection.AssemblyVersion(""2.0.0.0"")] public class B { }", options: s_signedDll, assemblyName: "B").EmitToImageReference();
2834
var b3Ref =
CreateCompilationWithMscorlib46
(@"[assembly: System.Reflection.AssemblyVersion(""3.0.0.0"")] public class B { }", options: s_signedDll, assemblyName: "B").EmitToImageReference();
2836
var aRef =
CreateCompilationWithMscorlib46
(@"[assembly: System.Reflection.AssemblyVersion(""1.0.0.0"")] public class A : B { }", new[] { b1Ref }, options: s_signedDll, assemblyName: "A").EmitToImageReference();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
4980
var compilation =
CreateCompilationWithMscorlib46
(source);
SymbolDisplay\SymbolDisplayTests.cs (1)
5408
var comp = (Compilation)
CreateCompilationWithMscorlib46
(text, references: new[] { SystemRuntimeFacadeRef, ValueTupleRef });
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (1)
578
return
CreateCompilationWithMscorlib46
(
Symbols\Retargeting\NoPia.cs (12)
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,
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,
Symbols\Source\ClsComplianceTests.cs (4)
643
var libCompliant =
CreateCompilationWithMscorlib46
(libCompliant_cs).EmitToImageReference();
644
var compCompliant =
CreateCompilationWithMscorlib46
(source, new[] { libCompliant }, TestOptions.ReleaseDll);
651
var libNotCompliant =
CreateCompilationWithMscorlib46
(libNotCompliant_cs).EmitToImageReference();
652
var compNotCompliant =
CreateCompilationWithMscorlib46
(source, new[] { libNotCompliant }, TestOptions.ReleaseDll);
Symbols\Source\FieldTests.cs (2)
276
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular).VerifyDiagnostics(
341
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
Symbols\Source\PropertyTests.cs (6)
2611
var comp =
CreateCompilationWithMscorlib46
("", new[] { mdRef });
2629
comp =
CreateCompilationWithMscorlib46
("", new[] { compRef });
2647
comp =
CreateCompilationWithMscorlib46
("", new[] { mdRef });
2665
comp =
CreateCompilationWithMscorlib46
("", new[] { compRef });
2704
comp =
CreateCompilationWithMscorlib46
("", new[] { mdRef });
2722
comp =
CreateCompilationWithMscorlib46
("", new[] { compRef });
Symbols\SymbolErrorTests.cs (12)
1118
CreateCompilationWithMscorlib46
(text, parseOptions: TestOptions.Regular).VerifyDiagnostics(
1169
CreateCompilationWithMscorlib46
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
4408
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
4443
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
4517
CreateCompilationWithMscorlib46
(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12)
4520
CreateCompilationWithMscorlib46
(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11)
4547
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
4567
CreateCompilationWithMscorlib46
(source, parseOptions: TestOptions.Regular12).VerifyDiagnostics(
15208
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
15252
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
15314
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
15388
CreateCompilationWithMscorlib46
(text).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\ParserErrorMessageTests.cs (3)
2714
CreateCompilationWithMscorlib46
(text, parseOptions: TestOptions.Regular8).VerifyDiagnostics(
2768
CreateCompilationWithMscorlib46
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp6)).VerifyDiagnostics(
2791
CreateCompilationWithMscorlib46
(text, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)).VerifyDiagnostics(
Parsing\PatternParsingTests.cs (1)
135
CreateCompilationWithMscorlib46
(test).VerifyDiagnostics(
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
CSharpFunctionResolverTests.cs (1)
1458
var compilation =
CreateCompilationWithMscorlib46
(source);