85 references to CreateCompilation
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
OverloadResolutionPriorityTests.cs (6)
664var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 665var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 712var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 713var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 773var comp1_1 = CreateCompilation(new AssemblyIdentity("Base", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 774var comp1_2 = CreateCompilation(new AssemblyIdentity("Base", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
Semantics\ExperimentalAttributeTests.cs (8)
926var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 927var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 963var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 964var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 991var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 992var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 1028var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 1029var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\InheritanceBindingTests.cs (2)
2995var comp11 = CreateCompilation(new AssemblyIdentity("lib1", new Version("4.2.1.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true), 2998var comp12 = CreateCompilation(new AssemblyIdentity("lib1", new Version("4.1.0.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true),
Semantics\NativeIntegerTests.cs (8)
845var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 883comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { source2 }, references: null); 956var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 1000comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { source2 }, references: null); 1049var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { sourceA }, references: references); 1052comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { sourceA }, references: references); 1137var comp = CreateCompilation(new AssemblyIdentity("9ef8b1e0-1ae0-4af6-b9a1-00f2078f299e", new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 1217var comp = CreateCompilation(new AssemblyIdentity("c804cc09-8f73-44a1-9cfe-9567bed1def6", new Version(1, 0, 0, 0)), new[] { source1 }, references: null);
Semantics\RefFieldTests.cs (4)
27154var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 27211var comp = CreateCompilation(assemblyIdentityLowerVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 27215comp = CreateCompilation(assemblyIdentityHigherVersion, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10); 27279var comp = CreateCompilation(assemblyIdentity, new[] { source0 }, references: null, parseOptions: TestOptions.Regular10);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (57)
Symbols\CompilationCreationTests.cs (35)
685var varC_MTTestLib1_V1 = CreateCompilation(varMTTestLib1_V1_Name, 700var varC_MTTestLib2 = CreateCompilation(varMTTestLib2_Name, 723var c2 = CreateCompilation(new AssemblyIdentity("c2"), 757var varC_MTTestLib1_V2 = CreateCompilation(varMTTestLib1_V2_Name, 776var varC_MTTestLib3 = CreateCompilation(varMTTestLib3_Name, 816var c3 = CreateCompilation(new AssemblyIdentity("c3"), 879var varC_MTTestLib1_V3 = CreateCompilation(varMTTestLib1_V3_Name, 902var varC_MTTestLib4 = CreateCompilation(varMTTestLib4_Name, 952var c4 = CreateCompilation(new AssemblyIdentity("c4"), 1057var c5 = CreateCompilation(new AssemblyIdentity("c5"), 1066var c6 = CreateCompilation(new AssemblyIdentity("c6"), 1075var c7 = CreateCompilation(new AssemblyIdentity("c7"), 1143var c8 = CreateCompilation(new AssemblyIdentity("c8"), 1157var c9 = CreateCompilation(new AssemblyIdentity("c9"), 1166var c10 = CreateCompilation(new AssemblyIdentity("c10"), 1421var varC_MTTestLib2 = CreateCompilation(varMTTestLib2_Name, (string[])null, 1430var c2 = CreateCompilation(new AssemblyIdentity("c2"), 1468var varC_MTTestLib3 = CreateCompilation(varMTTestLib3_Name, 1485var c3 = CreateCompilation(new AssemblyIdentity("c3"), 1553var varC_MTTestLib4 = CreateCompilation(varMTTestLib4_Name, 1573var c4 = CreateCompilation(new AssemblyIdentity("c4"), 1678var c5 = CreateCompilation(new AssemblyIdentity("c5"), 1690var c6 = CreateCompilation(new AssemblyIdentity("c6"), 1702var c7 = CreateCompilation(new AssemblyIdentity("c7"), 1779var c8 = CreateCompilation(new AssemblyIdentity("c8"), 1798var c9 = CreateCompilation(new AssemblyIdentity("c9"), 1810var c10 = CreateCompilation(new AssemblyIdentity("c10"), 2069var localC1_V1 = CreateCompilation(localC1_V1_Name, 2091var localC1_V2 = CreateCompilation(localC1_V2_Name, 2113var localC4_V1 = CreateCompilation(localC4_V1_Name, 2128var localC4_V2 = CreateCompilation(localC4_V2_Name, 2141var c7 = CreateCompilation(new AssemblyIdentity("C7"), 2156var c3 = CreateCompilation(new AssemblyIdentity("C3"), 2245var c5 = CreateCompilation(new AssemblyIdentity("C5"), 2558var c2 = CreateCompilation(c2_Name, null, new MetadataReference[]
Symbols\GenericConstraintTests.cs (2)
7325var remappedComp11 = CreateCompilation( 7331var remappedComp12 = CreateCompilation(
Symbols\RequiredMembersTests.cs (10)
2193var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2205var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2242var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2270var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2288var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2300var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2548var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2558var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2579var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2589var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (4)
23var comp1 = CreateCompilation( 104var comp2 = CreateCompilation( 317var comp1 = CreateCompilation( 362var comp2 = CreateCompilation(
Symbols\Retargeting\RetargetingTests.cs (6)
935var retargeted1 = CreateCompilation(retargetedIdentity, new[] { retargetedSource }, references: standardReference); 937var retargeted2 = CreateCompilation(retargetedIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { retargetedSource }, references: standardReference); 1048var beforeRetargeting = CreateCompilation(originalIdentity, new[] { corlibSource }, new MetadataReference[0]); 1062var afterRetargeting = CreateCompilation(originalIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { corlibSource }, new MetadataReference[0]); 1126var beforeRetargeting = CreateCompilation(originalIdentity, new[] { corlibSource }, new MetadataReference[0]); 1139var afterRetargeting = CreateCompilation(originalIdentity.WithVersion(new Version(2, 0, 0, 0)), new[] { corlibSource }, new MetadataReference[0]);