You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by TRUMPF-TobiH August 30, 2021
Hello Together,
sorry if the question is stupid, I am still new to Pester.
I am trying to mock an object with multiple methods, which results in an error.
Here is the code snippet directly from powershell:
InvalidOperation: C:\Program Files\PowerShell\Modules\Pester\5.3.0\Pester.psm1:12499:13
Line |12499|$mockState[$historyName] =@{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Unable to index into an object of type "System.Management.Automation.PSNoteProperty".
Discussed in #2066
Originally posted by TRUMPF-TobiH August 30, 2021
Hello Together,
sorry if the question is stupid, I am still new to Pester.
I am trying to mock an object with multiple methods, which results in an error.
Here is the code snippet directly from powershell:
Error Message:
Works fine with single method:
Also fine with multiple properties:
Using Pester Version 5.3.0 from psgallery on Windows Powershell Core 7.1.4
Thanks already for feedback
The text was updated successfully, but these errors were encountered: