97 references to GetResourcePath
Microsoft.DotNet.SignTool.Tests (97)
SignToolTests.cs (97)
580new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg"), "") 615new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg")) 647new ItemToSign(GetResourcePath("SignedLibrary.dll")), 648new ItemToSign(GetResourcePath("StrongNamedWithEcmaKey.dll")) 669new ItemToSign(GetResourcePath("DelaySigned.dll")) 693new ItemToSign(GetResourcePath("Crossgenned.exe")) 717new ItemToSign(GetResourcePath("OpenSigned.dll")) 745new ItemToSign(GetResourcePath(fileToTest), "123") 778new ItemToSign(GetResourcePath(GetResourcePath("ContainerOne.1.0.0.nupkg"))) 820new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg"), "123") 860new ItemToSign(GetResourcePath("EmptyPKT.dll")) 887new ItemToSign(GetResourcePath("CoreLibCrossARM.dll"), "123"), 888new ItemToSign(GetResourcePath("AspNetCoreCrossLib.dll"), "123") 927new ItemToSign(GetResourcePath("EmptyPKT.dll"), "123") 949new ItemToSign(GetResourcePath("CustomTargetFrameworkAttribute.dll"), "123") 974new ItemToSign(GetResourcePath("EmptyPKT.dll")) 996new ItemToSign(GetResourcePath("EmptyPKT.dll")) 1016new ItemToSign(GetResourcePath("PackageWithWix.nupkg"), "123"), 1017new ItemToSign(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), "123") 1067new ItemToSign(GetResourcePath("NestedContainer.1.0.0.nupkg"), "123") 1133<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 1145new ItemToSign(GetResourcePath("NestedContainer.1.0.0.nupkg"), "123") 1216<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 1228new ItemToSign(GetResourcePath("test.zip")) 1284new ItemToSign(GetResourcePath("test.pkg")) 1318new ItemToSign(GetResourcePath("test.pkg")) 1375new ItemToSign(GetResourcePath("test.pkg")) 1451new ItemToSign( GetResourcePath("NestedPkg.pkg")) 1503new ItemToSign( GetResourcePath("WithApp.pkg")) 1549new ItemToSign(GetResourcePath("test.tgz")) 1601new ItemToSign(GetResourcePath("test.symbols.nupkg")) 1653new ItemToSign(GetResourcePath("test.symbols.nupkg")) 1707new ItemToSign(GetResourcePath("test.deb")) 1751new ItemToSign(GetResourcePath("test.rpm")) 1779new ItemToSign(GetResourcePath("test.rpm")) 1821new ItemToSign(GetResourcePath("SignedDeb.deb")), 1822new ItemToSign(GetResourcePath("IncorrectlySignedDeb.deb")) 1852new ItemToSign(GetResourcePath("SignedRpm.rpm")), 1853new ItemToSign(GetResourcePath("IncorrectlySignedRpm.rpm")) 1884new ItemToSign(GetResourcePath("SignedScript.ps1")), 1885new ItemToSign(GetResourcePath("UnsignedScript.ps1")) 1952new ItemToSign(GetResourcePath("MsiBootstrapper.exe")), 1953new ItemToSign(GetResourcePath("MsiBootstrapper.exe.wixpack.zip")) 1999new ItemToSign(GetResourcePath("MsiSetup.msi"), "123"), 2000new ItemToSign(GetResourcePath("MsiSetup.msi.wixpack.zip"), "123") 2065new ItemToSign(GetResourcePath("test.mpack")) 2099new ItemToSign(GetResourcePath("test.vsix"), "123"), 2100new ItemToSign(GetResourcePath("PackageWithRelationships.vsix"), "123") 2160new ItemToSign(GetResourcePath("TestSpaces.vsix"), "123"), 2161new ItemToSign(GetResourcePath("PackageWithRelationships.vsix"), "123") 2221new ItemToSign(GetResourcePath("PackageWithRelationships.vsix")), 2222new ItemToSign(GetResourcePath("test.vsix")) 2278new ItemToSign(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), "123"), 2279new ItemToSign(GetResourcePath("test.vsix"), "123"), 2280new ItemToSign(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), "123") 2340new ItemToSign(GetResourcePath("PackageWithRelationships.vsix")) 2379new ItemToSign(GetResourcePath("ZeroLengthPythonFile.py")) 2491new ItemToSign(GetResourcePath("SameFiles1.zip"), "123"), 2492new ItemToSign(GetResourcePath("SameFiles2.zip"), "123"), 2521new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 2526new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 2637new ItemToSign(GetResourcePath("SignedLibrary.dll")), 2666new ItemToSign(GetResourcePath("SignedLibrary.dll")), 2695new ItemToSign( GetResourcePath("PackageWithZip.nupkg"), "123") 2727new ItemToSign( GetResourcePath("NestedZip.zip")) 2768new ItemToSign(GetResourcePath("EmptyPKT.dll"), "123"), 2769new ItemToSign(GetResourcePath("test.vsix"), "123"), 2770new ItemToSign(GetResourcePath("Simple.nupkg"), "123"), 2773new ItemToSign(GetResourcePath("Simple.symbols.nupkg"), "123"), 2775new ItemToSign(GetResourcePath("filewithoutextension"), "123"), 2777new ItemToSign(GetResourcePath("SPCNoPKT.dll"), "123"), 2779new ItemToSign(GetResourcePath("Simple.exe"), "1234") 2868GetResourcePath(resourcePath) : 2909GetResourcePath(value.ResourcePath) : 2948new ItemToSign(GetResourcePath("SPCNoPKT.dll"), "123") 2982var wixpackPath = GetResourcePath(wixPack); 3043StrongNameHelper.IsSigned(GetResourcePath("AspNetCoreCrossLib.dll")).Should().BeFalse(); 3044StrongNameHelper.IsSigned(GetResourcePath("CoreLibCrossARM.dll")).Should().BeFalse(); 3045StrongNameHelper.IsSigned(GetResourcePath("EmptyPKT.dll")).Should().BeFalse(); 3046StrongNameHelper.IsSigned(GetResourcePath("DelaySigned.dll")).Should().BeFalse(); 3047StrongNameHelper.IsSigned(GetResourcePath("ProjectOne.dll")).Should().BeFalse(); 3109using var inputStream = File.OpenRead(GetResourcePath("SignedLibrary.dll")); 3123using var inputStream = File.OpenRead(GetResourcePath("SignedLibrary.dll")); 3138using var inputStream = File.OpenRead(GetResourcePath("InvalidatedStrongName.dll")); 3154StrongNameHelper.IsSigned(GetResourcePath("SignedLibrary.dll")).Should().BeTrue(); 3155StrongNameHelper.IsSigned(GetResourcePath("StrongNamedWithEcmaKey.dll")).Should().BeTrue(); 3161StrongNameHelper.IsSigned_Legacy(GetResourcePath("SignedLibrary.dll"), s_snPath).Should().BeTrue(); 3162StrongNameHelper.IsSigned_Legacy(GetResourcePath("StrongNamedWithEcmaKey.dll"), s_snPath).Should().BeTrue(); 3171string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString()); 3173StrongNameHelper.Sign(resourcePath, GetResourcePath(key)); 3188string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString()); 3192StrongNameHelper.Sign_Legacy(resourcePath, GetResourcePath(key), s_snPath).Should().BeTrue(); 3200using (var inputStream = File.OpenRead(GetResourcePath("StrongNamedWithEcmaKey.dll"))) 3202Action shouldFail = () => StrongNameHelper.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk")); 3211using (var inputStream = File.OpenRead(GetResourcePath("DelaySigned.dll"))) 3213Action shouldFail = () => StrongNameHelper.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk"));