mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add unit test for HasRegistrySupport()
The use of the function in RegistryProvider cannot be tested without a mock of a PowerShell cmdlet context.
This commit is contained in:
@@ -14,6 +14,7 @@ namespace PSTests
|
||||
PlatformTests.TestHasAmsi();
|
||||
PlatformTests.TestUsesCodeSignedAssemblies();
|
||||
PlatformTests.TestHasDriveAutoMounting();
|
||||
PlatformTests.TestHasRegistrySupport();
|
||||
|
||||
PSTypeExtensionsTests.TestIsComObject();
|
||||
|
||||
|
||||
@@ -30,5 +30,10 @@ namespace PSTests
|
||||
{
|
||||
Assert.False(Platform.HasDriveAutoMounting());
|
||||
}
|
||||
|
||||
public static void TestHasRegistrySupport()
|
||||
{
|
||||
Assert.False(Platform.HasRegistrySupport());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user