Added pester tests for Start-Sleep

This commit is contained in:
Alex Jordan
2015-11-19 06:23:31 +00:00
parent 835a3fed1c
commit 909a993a62
+14
View File
@@ -0,0 +1,14 @@
Describe "Start-Sleep" {
Context "Validate Start-Sleep works properly" {
It "Should only sleep for at least 3 seconds"{
$result = Measure-Command { Start-Sleep -s 3 }
$result.Seconds | Should BeGreaterThan 3
}
It "Should sleep for at least 3 seconds using the alias" {
$result = Measure-Command { sleep -s 3 }
$result.Seconds | Should BeGreaterThan 3
}
}
}