Change free/used calculation to be consistent across platforms

add a couple of tests to validate return values
This commit is contained in:
James Truher committed 2016-08-03 10:38:26 -07:00
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
}
}