2015-11-19 07:23:31 +01:00
|
|
|
Describe "Start-Sleep" {
|
|
|
|
|
|
|
|
Context "Validate Start-Sleep works properly" {
|
2016-03-04 23:52:27 +01:00
|
|
|
It "Should only sleep for at least 1 second" {
|
|
|
|
$result = Measure-Command { Start-Sleep -s 1 }
|
|
|
|
$result.TotalSeconds | Should BeGreaterThan 0.25
|
|
|
|
}
|
2015-11-19 07:23:31 +01:00
|
|
|
|
2016-03-04 23:52:27 +01:00
|
|
|
It "Should sleep for at least 1 second using the alias" {
|
|
|
|
$result = Measure-Command { sleep -s 1 }
|
|
|
|
$result.TotalSeconds | Should BeGreaterThan 0.25
|
|
|
|
}
|
2015-11-19 07:23:31 +01:00
|
|
|
}
|
|
|
|
}
|