/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/powershell/Modules/Microsoft.PowerShell.Management/ItemProperty.Tests.ps1
21 строка
1 KB
xtqqczze
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files (#12584)
07 май 2020, 15:00
Не верифицирован
07 май 2020, 15:00
f438220
Код
Авторство
О чём код?
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe "Simple ItemProperty Tests" -Tag "CI" { It "Can retrieve the PropertyValue with Get-ItemPropertyValue" { Get-ItemPropertyValue -Path $TESTDRIVE -Name Attributes | Should -Be "Directory" } It "Can clear the PropertyValue with Clear-ItemProperty" { Setup -f file1.txt Set-ItemProperty $TESTDRIVE/file1.txt -Name Attributes -Value ReadOnly Get-ItemPropertyValue -Path $TESTDRIVE/file1.txt -Name Attributes | Should -Match "ReadOnly" Clear-ItemProperty $TESTDRIVE/file1.txt -Name Attributes Get-ItemPropertyValue -Path $TESTDRIVE/file1.txt -Name Attributes | Should -Not -Match "ReadOnly" } # these cmdlets are targeted at the windows registry, and don't have an linux equivalent Context "Registry targeted cmdlets" { It "Copy ItemProperty" -Pending { } It "Move ItemProperty" -Pending { } It "New ItemProperty" -Pending { } It "Rename ItemProperty" -Pending { } } }