diff --git a/Tests/Registry-SnapshotApply.Tests.ps1 b/Tests/Registry-SnapshotApply.Tests.ps1 index 36dfc9b..0df4d96 100644 --- a/Tests/Registry-SnapshotApply.Tests.ps1 +++ b/Tests/Registry-SnapshotApply.Tests.ps1 @@ -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' {