It's important to start tests with a clean session, especially when writing unit tests and creating mocks. Here's how to run Pester tests in a completely new PowerShell process. Writing unit tests in ...
"Should" operators have the critical role of comparing a condition with an expected result. Without that functionality, a test of your PowerShell code would be worthless. Pester is the de facto ...