39 references to CreateFromImage
InteractiveHost.UnitTests (1)
InteractiveHostDesktopTests.cs (1)
439MetadataReference.CreateFromImage(dll.Image));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenConversionTests.cs (2)
284var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe); 382var comp2 = CreateCompilation(source2, new[] { MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData) }, TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\AccessCheckTests.cs (8)
1088var reference1 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 1114var reference2 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 1161var reference1 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 1172var reference2 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 1198var referenceA = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 1210var referenceB = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 1240var referenceA = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 1251var referenceB = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData);
Semantics\SemanticErrorTests.cs (2)
4556var reference1 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 7804var reference1 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\ExtensionMethodTests.cs (2)
3298var reference1 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData); 3311var reference2 = MetadataReference.CreateFromImage(compilationVerifier.EmittedAssemblyData);
Symbols\IndexedPropertyTests.cs (1)
1691var reference2 = MetadataReference.CreateFromImage(compilation2.EmittedAssemblyData);
Symbols\Metadata\PE\TypeForwarders.cs (1)
1464var ref1 = MetadataReference.CreateFromImage(verifier1.EmittedAssemblyData);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
BasicCompilationUtils.cs (1)
27return MetadataReference.CreateFromImage(verifier.EmittedAssemblyData);
CSharpTestBase.cs (1)
1524return MetadataReference.CreateFromImage(ReadFromFile(tempAssembly.Path));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Attributes\AttributeTests.vb (4)
1881Dim ref1 = MetadataReference.CreateFromImage(metadata1) 1896Dim ref2 = MetadataReference.CreateFromImage(metadata2) 1924Dim classLibrary = MetadataReference.CreateFromImage(compilation1.EmitToArray()) 1975Dim classLibrary = MetadataReference.CreateFromImage(compilation1.EmitToArray())
Attributes\AttributeTests_WellKnownAttributes.vb (1)
3610Dim classLibrary = MetadataReference.CreateFromImage(compilation1.EmitToArray())
Attributes\InternalsVisibleToAndStrongNameTests.vb (5)
631</compilation>, {MetadataReference.CreateFromImage(otherImage)}, TestOptions.SigningReleaseDll, parseOptions:=parseOptions) 656</compilation>, {MetadataReference.CreateFromImage(otherImage)}, TestOptions.SigningReleaseDll, parseOptions:=parseOptions) 854</compilation>, {MetadataReference.CreateFromImage(other.EmitToArray())}, TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile).WithDelaySign(True), parseOptions:=parseOptions) 1690CompileAndVerify(other.WithReferences({other.References(0), MetadataReference.CreateFromImage(unsigned.EmitToArray)})).VerifyDiagnostics() 1723other.WithReferences({other.References(0), MetadataReference.CreateFromImage(unsigned.EmitToArray)})}
Emit\OptionalArgumentsTests.vb (1)
168Return MetadataReference.CreateFromImage(libraryCompilation.EmitToArray())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Semantics\AccessCheckTests.vb (5)
643{MetadataReference.CreateFromImage(other.EmitToArray())}) 679</compilation>, {MetadataReference.CreateFromImage(otherImage)}) 2017</compilation>, {MetadataReference.CreateFromImage(assem1Bytes)}) 2042{MetadataReference.CreateFromImage(assem1Bytes), MetadataReference.CreateFromImage(assem2Bytes)})
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\MetadataMemberTests.vb (1)
717Dim mtref = MetadataReference.CreateFromImage(mtdata)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
BasicTestBase.vb (1)
380reference = MetadataReference.CreateFromImage(ReadFromFile(tempAssembly.Path))
CompilationTestUtils.vb (1)
407Return MetadataReference.CreateFromImage(ilImage)
MetadataHelpers.vb (1)
37refs.Add(MetadataReference.CreateFromImage(CType(r, ImmutableArray(Of Byte))))