Tests/Examples/Update-ScriptBlock.examples.tests.ps1
describe 'Update-ScriptBlock' { it 'Update-ScriptBlock Example 1' { Update-PipeScript -ScriptBlock { param($x,$y) } -RemoveParameter x } it 'Update-ScriptBlock Example 2' { Update-PipeScript -RenameVariable @{x='y'} -ScriptBlock {$x} } it 'Update-ScriptBlock Example 3' { Update-PipeScript -ScriptBlock { #region MyRegion 1 #endregion MyRegion 2 } -RegionReplacement @{MyRegion=''} } } |