Merge pull request #1623 from PowerShell/jimtru/PSDriveFreeSpaceFix

Get-PSDrive should report proper free space on all platforms
This commit is contained in:
Jason Shirk authored and GitHub committed 2016-08-03 14:11:28 -07:00
commit 31b3d13e10
2 files changed
+11 -6

No files matched your search

@@ -44,4 +44,12 @@ Describe "Get-PSDrive" -Tags "CI" {
!(Get-PSDrive fake -ErrorAction SilentlyContinue) | Should Be $True
Get-PSDrive fake -ErrorAction SilentlyContinue | Should BeNullOrEmpty
}
It "Should be able to determine the amount of free space of a drive" {
$dInfo = Get-PSDrive TESTDRIVE
$dInfo.Free -ge 0 | Should be $true
}
It "Should be able to determine the amount of Used space of a drive" {
$dInfo = Get-PSDrive TESTDRIVE
$dInfo.Used -ge 0 | Should be $true
}
}