8000 Add test coverage for Registry by jeffbi · Pull Request #4354 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Add test coverage for Registry #4354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 2, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
< 8000 span data-view-component="true"> Loading
Diff view
Diff view
Prev Previous commit
Fix typos.
  • Loading branch information
Jeff Bienstadt committed Jul 28, 2017
commit a946fc5dbb472526992a60fd1df9426cbccd35b2
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Describe "Basic Registry Provider Tests" -Tags @("CI", "RequireAdminOnWindows")
}

Context "Validate basic registry provider Cmdlets" {
It "Verity Test-Path" {
It "Verify Test-Path" {
Test-Path -IsValid Registry::HKCU/Software | Should Be $true
Test-Path -IsValid Registry::foo/Softare | Should Be $false
}
Expand Down Expand Up @@ -169,15 +169,15 @@ Describe "Basic Registry Provider Tests" -Tags @("CI", "RequireAdminOnWindows")
$property."$testPropertyName" | Should Be 0
}

It "Verity Clear-Item" {
It "Verify Clear-Item" {
Set-ItemProperty -Path $testKey -Name $testPropertyName -Value $testPropertyValue
Set-Item -Path $testKey -Value $defaultPropertyValue
Clear-Item -Path $testKey
$key = Get-Item -Path $testKey
$key.Property.Length | Should BeExactly 0
}

It "Verity Clear-Item with -WhatIf" {
It "Verify Clear-Item with -WhatIf" {
Set-ItemProperty -Path $testKey -Name $testPropertyName -Value $testPropertyValue
Set-Item -Path $testKey -Value $defaultPropertyValue
Clear-Item -Path $testKey -WhatIf
Expand Down
0