Skip to content

Commit

Permalink
Add default ctors to make code run under Profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Jan 17, 2025
1 parent 699e6f8 commit 2d84af0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tst/functions/New-MockObject.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down

0 comments on commit 2d84af0

Please sign in to comment.