mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Merge pull request #1623 from PowerShell/jimtru/PSDriveFreeSpaceFix
Get-PSDrive should report proper free space on all platforms
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user