fix: update error handling in Test-RegistryKeySnapshotCanBeRestored to use specific ErrorId (#885)

This commit is contained in:
Jeffrey
2026-11-08 04:48:46 +01:00
committed by GitHub
parent a23f2a08ad
commit eef5c592fb
+1 -1
View File
@@ -221,7 +221,7 @@ Describe 'Test-RegistryKeySnapshotCanBeRestored' {
}
{ Test-RegistryKeySnapshotCanBeRestored -Snapshot $snapshot } |
Should -Throw '*Value was either too large or too small*'
Should -Throw -ErrorId 'InvalidCastIConvertible*'
}
It 'rejects a descendant that is not directly below its declared parent' {