8 references to NeedsShadowCopy
Microsoft.CodeAnalysis.Scripting (3)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (3)
232
if (
NeedsShadowCopy
(fullPath))
282
/// Copy of the specified file, or null if the file doesn't need a copy (<see cref="
NeedsShadowCopy
"/>).
290
return
NeedsShadowCopy
(fullPath) ? GetMetadataShadowCopyNoCheck(fullPath, kind) : null;
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (5)
MetadataShadowCopyProviderTests.cs (5)
57
Assert.Throws<ArgumentNullException>(() => _provider.
NeedsShadowCopy
(null));
58
Assert.Throws<ArgumentException>(() => _provider.
NeedsShadowCopy
("c:goo.dll"));
59
Assert.Throws<ArgumentException>(() => _provider.
NeedsShadowCopy
("bar.dll"));
60
Assert.Throws<ArgumentException>(() => _provider.
NeedsShadowCopy
(@"\bar.dll"));
61
Assert.Throws<ArgumentException>(() => _provider.
NeedsShadowCopy
(@"../bar.dll"));