Add unit test for HasDriveAutoMounting()

Cannot unit test SessionStateInternal.Drives() (where this feature query
is used) without a testable mock of PowerShell.
This commit is contained in:
Andrew Schwartzmeyer
2015-06-15 15:17:15 -07:00
parent c42ba3bd56
commit 195f42bea5
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -13,6 +13,7 @@ namespace PSTests
PlatformTests.TestHasCom();
PlatformTests.TestHasAmsi();
PlatformTests.TestUsesCodeSignedAssemblies();
PlatformTests.TestHasDriveAutoMounting();
PSTypeExtensionsTests.TestIsComObject();
+5
View File
@@ -25,5 +25,10 @@ namespace PSTests
{
Assert.False(Platform.UsesCodeSignedAssemblies());
}
public static void TestHasDriveAutoMounting()
{
Assert.False(Platform.HasDriveAutoMounting());
}
}
}