mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
@@ -1,11 +1,11 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License.
|
||||
Describe "Set-Date for admin" -Tag @('CI', 'RequireAdminOnWindows', 'RequireSudoOnUnix') {
|
||||
It "Set-Date should be able to set the date in an elevated context" -Pending {
|
||||
It "Set-Date should be able to set the date in an elevated context" {
|
||||
{ Get-Date | Set-Date } | Should Not Throw
|
||||
}
|
||||
|
||||
It "Set-Date should be able to set the date with -Date parameter" -Pending {
|
||||
It "Set-Date should be able to set the date with -Date parameter" {
|
||||
$target = Get-Date
|
||||
$expected = $target
|
||||
Set-Date -Date $target | Should Be $expected
|
||||
|
||||
Reference in New Issue
Block a user