How to use Pester New-MockObject with class from within a module
Synopsis: When trying to calling New-MockObject -Type 'Config'
where Config is a class defined in another psm1 file, I get the following error PSInvalidCastException: Cannot convert the "Config" value of type "System.String" to type "System.Type"
How to use Pester New-MockObject with class from within a module
Synopsis: When trying to calling New-MockObject -Type 'Config'
where Config is a class defined in another psm1 file, I get the following error PSInvalidCastException: Cannot convert the "Config" value of type "System.String" to type "System.Type"
How to use Pester New-MockObject with class from within a module
Synopsis: When trying to calling New-MockObject -Type 'Config'
where Config is a class defined in another psm1 file, I get the following error PSInvalidCastException: Cannot convert the "Config" value of type "System.String" to type "System.Type"
How to use Pester New-MockObject with class from within a module
Synopsis: When trying to calling New-MockObject -Type 'Config'
where Config is a class defined in another psm1 file, I get the following error PSInvalidCastException: Cannot convert the "Config" value of type "System.String" to type "System.Type"
Remove pester 3.4.0 – Powershell
I’m trying to remove pester v3.4.0 but nothing I’m doing is working. I can’t manually remove the folder as admin. I can’t run uninstall-module normally or as admin and I can’t use this script:
Remove pester 3.4.0 – Powershell
I’m trying to remove pester v3.4.0 but nothing I’m doing is working. I can’t manually remove the folder as admin. I can’t run uninstall-module normally or as admin and I can’t use this script:
Remove pester 3.4.0 – Powershell
I’m trying to remove pester v3.4.0 but nothing I’m doing is working. I can’t manually remove the folder as admin. I can’t run uninstall-module normally or as admin and I can’t use this script:
PowerShell Pester : Use a variable in multiple It-blocks and recognize function when invoked from PowerShell Window
I have the following Pester Test-script: