mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Change free/used calculation to be consistent across platforms
add a couple of tests to validate return values
This commit is contained in:
1 parent
9597a47689
commit
1bbdaa7ea8
2 files changed
+11
-17
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