93 references to GetResourcePath
Microsoft.DotNet.SignTool.Tests (93)
SignToolTests.cs (93)
584new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg"), "") 619new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg")) 651new ItemToSign(GetResourcePath("SignedLibrary.dll")), 652new ItemToSign(GetResourcePath("StrongNamedWithEcmaKey.dll")) 673new ItemToSign(GetResourcePath("DelaySigned.dll")) 697new ItemToSign(GetResourcePath("Crossgenned.exe")) 721new ItemToSign(GetResourcePath("OpenSigned.dll")) 749new ItemToSign(GetResourcePath(fileToTest), "123") 782new ItemToSign(GetResourcePath(GetResourcePath("ContainerOne.1.0.0.nupkg"))) 824new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg"), "123") 864new ItemToSign(GetResourcePath("EmptyPKT.dll")) 891new ItemToSign(GetResourcePath("CoreLibCrossARM.dll"), "123"), 892new ItemToSign(GetResourcePath("AspNetCoreCrossLib.dll"), "123") 931new ItemToSign(GetResourcePath("EmptyPKT.dll"), "123") 953new ItemToSign(GetResourcePath("CustomTargetFrameworkAttribute.dll"), "123") 978new ItemToSign(GetResourcePath("EmptyPKT.dll")) 1001new ItemToSign(GetResourcePath("PackageWithWix.nupkg"), "123"), 1002new ItemToSign(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), "123") 1052new ItemToSign(GetResourcePath("NestedContainer.1.0.0.nupkg"), "123") 1118<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 1130new ItemToSign(GetResourcePath("NestedContainer.1.0.0.nupkg"), "123") 1201<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 1213new ItemToSign(GetResourcePath("test.zip")) 1269new ItemToSign(GetResourcePath("test.pkg")) 1303new ItemToSign(GetResourcePath("test.pkg")) 1360new ItemToSign(GetResourcePath("test.pkg")) 1436new ItemToSign( GetResourcePath("NestedPkg.pkg")) 1488new ItemToSign( GetResourcePath("WithApp.pkg")) 1534new ItemToSign(GetResourcePath("test.tgz")) 1586new ItemToSign(GetResourcePath("test.symbols.nupkg")) 1638new ItemToSign(GetResourcePath("test.symbols.nupkg")) 1869new ItemToSign(GetResourcePath("SignedScript.ps1")), 1870new ItemToSign(GetResourcePath("UnsignedScript.ps1")) 1895new ItemToSign(GetResourcePath("SignedPackage.1.0.0.nupkg")), 1896new ItemToSign(GetResourcePath("IncorrectlySignedPackage.1.0.0.nupkg")) 1912new ItemToSign(GetResourcePath("UnsignedContents.nupkg")), 1913new ItemToSign(GetResourcePath("FakeSignedContents.nupkg")) 1937new ItemToSign(GetResourcePath("MsiBootstrapper.exe")), 1938new ItemToSign(GetResourcePath("MsiBootstrapper.exe.wixpack.zip")) 1984new ItemToSign(GetResourcePath("MsiSetup.msi"), "123"), 1985new ItemToSign(GetResourcePath("MsiSetup.msi.wixpack.zip"), "123") 2050new ItemToSign(GetResourcePath("test.mpack")) 2084new ItemToSign(GetResourcePath("test.vsix"), "123"), 2085new ItemToSign(GetResourcePath("PackageWithRelationships.vsix"), "123") 2145new ItemToSign(GetResourcePath("TestSpaces.vsix"), "123"), 2146new ItemToSign(GetResourcePath("PackageWithRelationships.vsix"), "123") 2206new ItemToSign(GetResourcePath("PackageWithRelationships.vsix")), 2207new ItemToSign(GetResourcePath("test.vsix")) 2263new ItemToSign(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), "123"), 2264new ItemToSign(GetResourcePath("test.vsix"), "123"), 2265new ItemToSign(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), "123") 2325new ItemToSign(GetResourcePath("PackageWithRelationships.vsix")) 2364new ItemToSign(GetResourcePath("ZeroLengthPythonFile.py")) 2478new ItemToSign(GetResourcePath("SameFiles1.zip"), "123"), 2479new ItemToSign(GetResourcePath("SameFiles2.zip"), "123"), 2508new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 2513new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 2624new ItemToSign(GetResourcePath("SignedLibrary.dll")), 2653new ItemToSign(GetResourcePath("SignedLibrary.dll")), 2682new ItemToSign( GetResourcePath("PackageWithZip.nupkg"), "123") 2714new ItemToSign( GetResourcePath("NestedZip.zip")) 2756new ItemToSign(GetResourcePath("EmptyPKT.dll"), "123"), 2757new ItemToSign(GetResourcePath("test.vsix"), "123"), 2758new ItemToSign(GetResourcePath("Simple.nupkg"), "123"), 2761new ItemToSign(GetResourcePath("Simple.symbols.nupkg"), "123"), 2763new ItemToSign(GetResourcePath("filewithoutextension"), "123"), 2765new ItemToSign(GetResourcePath("SPCNoPKT.dll"), "123"), 2767new ItemToSign(GetResourcePath("Simple.exe"), "1234") 2858GetResourcePath(resourcePath) : 2898GetResourcePath(value.ResourcePath) : 2936new ItemToSign(GetResourcePath("SPCNoPKT.dll"), "123") 2970var wixpackPath = GetResourcePath(wixPack); 3031StrongName.IsSigned(GetResourcePath("AspNetCoreCrossLib.dll")).Should().BeFalse(); 3032StrongName.IsSigned(GetResourcePath("CoreLibCrossARM.dll")).Should().BeFalse(); 3033StrongName.IsSigned(GetResourcePath("EmptyPKT.dll")).Should().BeFalse(); 3034StrongName.IsSigned(GetResourcePath("DelaySigned.dll")).Should().BeFalse(); 3035StrongName.IsSigned(GetResourcePath("ProjectOne.dll")).Should().BeFalse(); 3097using var inputStream = File.OpenRead(GetResourcePath("SignedLibrary.dll")); 3111using var inputStream = File.OpenRead(GetResourcePath("SignedLibrary.dll")); 3126using var inputStream = File.OpenRead(GetResourcePath("InvalidatedStrongName.dll")); 3142StrongName.IsSigned(GetResourcePath("SignedLibrary.dll")).Should().BeTrue(); 3143StrongName.IsSigned(GetResourcePath("StrongNamedWithEcmaKey.dll")).Should().BeTrue(); 3149StrongName.IsSigned_Legacy(GetResourcePath("SignedLibrary.dll"), s_snPath).Should().BeTrue(); 3150StrongName.IsSigned_Legacy(GetResourcePath("StrongNamedWithEcmaKey.dll"), s_snPath).Should().BeTrue(); 3159string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString()); 3161StrongName.Sign(resourcePath, GetResourcePath(key)); 3176string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString()); 3180StrongName.Sign_Legacy(resourcePath, GetResourcePath(key), s_snPath).Should().BeTrue(); 3188using (var inputStream = File.OpenRead(GetResourcePath("StrongNamedWithEcmaKey.dll"))) 3190Action shouldFail = () => StrongName.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk")); 3199using (var inputStream = File.OpenRead(GetResourcePath("DelaySigned.dll"))) 3201Action shouldFail = () => StrongName.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk"));