Fix typo
Merge pull request #239 from seanhussey/patch-1

Fix typo
Update Pester.psm1

relying on case sensitivity on Windows may cause difficulties. If names are normalized to lowercase, importing the module will cause all sorts of trouble as the tests will be executed, sometimes ahead of the non-test file.
Merge pull request #241 from JamesWTruher/patch-1

Update Pester.psm1
Fix for mocking functions with mandatory pipeline parameters

The dynamicparam code was failing in a situation where a mocked function defined a mandatory parameter that is able to accept pipeline input, and when the call to the mocked function is taking advantage of that pipeline capability.

The script block that is executed to generate any dynamic parameters (even if the mocked function doesn't have any dynamicparam statements, this still gets called) was defining the same param block as the original command, and the $PSBoundParameters table was being splatted to the dynamicparam script block.  The problem is that when pipeline input is involved, the input objects haven't been bound yet at the time that the dynamicparam code is executed.  Because those parameters were marked as mandatory, this caused the dynamicparam script block to prompt for input (or fail, if -NonInteractive mode is in effect.)

To fix this, I stripped out the Mandatory attribute from all parameters when generating the dynamicparam script block.  This seems to work, but I need some time to think about whether this might introduce other bugs (possibly due to newly ambigious parameter sets, if the mandatory attributes were helping to distinguish between two sets or something along those lines.)

Assuming this is all kosher, this will fix #244 .
Merge pull request #248 from dlwyatt/MockingWithMandatoryPipelineInput

Fix for mocking functions with mandatory pipeline parameters
Merge branch 'master' into LanguageDecoupling