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:
Andrew Schwartzmeyer
2015-07-06 12:46:38 -07:00
parent 3919ec8375
commit b2e3a1e2e3
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ namespace PSTests
PlatformTests.TestHasAmsi();
PlatformTests.TestUsesCodeSignedAssemblies();
PlatformTests.TestHasDriveAutoMounting();
PlatformTests.TestHasRegistrySupport();
PSTypeExtensionsTests.TestIsComObject();
+5
View File
@@ -30,5 +30,10 @@ namespace PSTests
{
Assert.False(Platform.HasDriveAutoMounting());
}
public static void TestHasRegistrySupport()
{
Assert.False(Platform.HasRegistrySupport());
}
}
}