![]() ![]() Scriptblocks allow Pester to segment code, control how it’s run and more. Pester’s domain-specific language (DSL) is heavily reliant on PowerShell scriptblocks. Since they were both the same, the test passed. It then compared that output to the expected output of Working!. On the second round, Pester dot sourced the Install-Pester function again, ran it and this time captured the output of Working!. ![]() Since the test was expecting $true to be $false, it failed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |