diff --git a/tst/functions/New-MockObject.Tests.ps1 b/tst/functions/New-MockObject.Tests.ps1 index 52d27b961..bf3c9eb8d 100644 --- a/tst/functions/New-MockObject.Tests.ps1 +++ b/tst/functions/New-MockObject.Tests.ps1 @@ -44,6 +44,8 @@ Describe 'New-MockObject' { # Simulate a internal module class like https://github.com/pester/Pester/issues/2564 $someObj = & { class MyInternalClass { + MyInternalClass() { } + [string] $Name = 'Default' [string] GetName() { return $this.Name } }