Fixing get-help on Linux

This commit is contained in:
Francisco Gamino committed 2016-08-10 12:19:51 -07:00
1 parent 800382f019
commit 3ed7201e21
4 files changed
+55 -3

No files matched your search

@@ -0,0 +1,25 @@
Describe 'Basic help system tests' -Tags "CI" {
Context "Validate help content for cmdlets in Microsof.PowerShell.Core" {
$cmdlets = get-command -module "Microsoft.PowerShell.Core"
$cmdletsToSkip = @(
"Get-PSHostProcessInfo",
"Out-Default",
"Register-ArgumentCompleter"
)
foreach ($cmdletName in $cmdlets)
{
if ($cmdletsToSkip -notcontains $cmdletName)
{
It "Validate -Description and -Examples sections in help content. Run 'Get-help -name $cmdletName'" {
$help = get-help -name $cmdletName
$help.Description | Out-String | Should Match $cmdletName
$help.Examples | Out-String | Should Match $cmdletName
}
}
}
}
}