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