19 references to GetMetadataShadowCopy
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (19)
MetadataShadowCopyProviderTests.cs (19)
69Assert.Throws<ArgumentOutOfRangeException>(() => _provider.GetMetadataShadowCopy(IsRunningOnMono ? "/goo.dll" : @"c:\goo.dll", (MetadataImageKind)Byte.MaxValue));
70Assert.Throws<ArgumentNullException>(() => _provider.GetMetadataShadowCopy(null, MetadataImageKind.Assembly));
71Assert.Throws<ArgumentException>(() => _provider.GetMetadataShadowCopy("c:goo.dll", MetadataImageKind.Assembly));
72Assert.Throws<ArgumentException>(() => _provider.GetMetadataShadowCopy("bar.dll", MetadataImageKind.Assembly));
73Assert.Throws<ArgumentException>(() => _provider.GetMetadataShadowCopy(@"\bar.dll", MetadataImageKind.Assembly));
74Assert.Throws<ArgumentException>(() => _provider.GetMetadataShadowCopy(@"../bar.dll", MetadataImageKind.Assembly));
88var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
89var sc2 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
107var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
116var sc2 = _provider.GetMetadataShadowCopy(mscorlib, MetadataImageKind.Assembly);
127var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
131var sc2 = _provider.GetMetadataShadowCopy(sc1.PrimaryModule.FullPath, MetadataImageKind.Assembly);
200var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
201var sc2 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
213var sc3a = _provider.GetMetadataShadowCopy(dll2.Path, MetadataImageKind.Module);
230var sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
236sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
242sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);
248sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);