mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Re-enable checking of assemblies with strong names
This removes the `UsesCodeSignedAssemblies()` switch in `CorePsPlatform` and reverts the work-arounds skipping strong name checking.
This commit is contained in:
1 parent
ee96212fb6
commit
97df59f553
5 files changed
+5
-52
No files matched your search
@@ -27,12 +27,6 @@ namespace PSTests
|
||||
Assert.False(Platform.HasAmsi());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public static void TestUsesCodeSignedAssemblies()
|
||||
{
|
||||
Assert.False(Platform.UsesCodeSignedAssemblies());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public static void TestHasDriveAutoMounting()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace PSTests
|
||||
public void TestReadCoreEngineSnapIn()
|
||||
{
|
||||
PSSnapInInfo pSSnapInInfo = PSSnapInReader.ReadCoreEngineSnapIn();
|
||||
Assert.Contains("PublicKeyToken=null", pSSnapInInfo.AssemblyName);
|
||||
Assert.Contains("PublicKeyToken=31bf3856ad364e35", pSSnapInInfo.AssemblyName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user