2015-11-19 07:23:31 +01:00
|
|
|
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 }
|
2015-11-19 07:36:13 +01:00
|
|
|
$result.Seconds | Should BeGreaterThan 2
|
2015-11-19 07:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
It "Should sleep for at least 3 seconds using the alias" {
|
|
|
|
$result = Measure-Command { sleep -s 3 }
|
2015-11-19 07:36:13 +01:00
|
|
|
$result.Seconds | Should BeGreaterThan 2
|
2015-11-19 07:23:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|