10 references to GetMetadata
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.ShadowCopyReference.cs (1)
33
return _provider.
GetMetadata
(FilePath, Properties.Kind);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (9)
MetadataShadowCopyProviderTests.cs (9)
76
Assert.Throws<ArgumentOutOfRangeException>(() => _provider.
GetMetadata
(IsRunningOnMono ? "/goo.dll" : @"c:\goo.dll", (MetadataImageKind)Byte.MaxValue));
77
Assert.Throws<ArgumentNullException>(() => _provider.
GetMetadata
(null, MetadataImageKind.Assembly));
78
Assert.Throws<ArgumentException>(() => _provider.
GetMetadata
("c:goo.dll", MetadataImageKind.Assembly));
144
var metadata1 = _provider.
GetMetadata
(path0, MetadataImageKind.Assembly) as AssemblyMetadata;
166
var metadata2 = _provider.
GetMetadata
(path0, MetadataImageKind.Assembly) as AssemblyMetadata;
173
var modifiedMetadata3 = _provider.
GetMetadata
(path0, MetadataImageKind.Assembly) as AssemblyMetadata;
187
Assert.Throws<BadImageFormatException>(() => _provider.
GetMetadata
(f0, MetadataImageKind.Assembly));
190
Assert.Throws<FileNotFoundException>(() => _provider.
GetMetadata
(f1, MetadataImageKind.Assembly));
203
var md1 = _provider.
GetMetadata
(dll.Path, MetadataImageKind.Assembly);