FluentShellUnit is a unit testing framework of testing PowerShell scripts and modules. It provides a simple to use API to write your tests in C# for loading and executing the functions in a PowerShell module or script file. It follows a very easy approach to stub the existing cmdlets or functions so that you can easily isolate your test code. This makes it a very good candidate for teams practicing TDD and using PowerShell in their code base.
You can also download the latest version of the package from Nuget gallery in Visual Studio
Introducing FluentShellUnit - A unit testing framework for PowerShell in C#
FluentShellUnit - Creating a dummy
FluentShellUnit - Creating a stub from scriptblock
FluentShellUnit - Pass a stub as argument to SUT