@@ -387,24 +387,17 @@ Describe 'New-MarkdownHelp' {
387
387
388
388
389
389
Describe ' New-ExternalHelp' {
390
- function global :Test-OrderFunction {
391
- param ([Parameter (Position = 3 )]$Third , [Parameter (Position = 1 )]$First , [Parameter ()]$Named )
392
- $First
393
- $Third
394
- $Named
395
- }
396
-
397
390
BeforeAll {
398
- $a = @ {
399
- command = ' Test-OrderFunction'
400
- OutputFolder = ' TestDrive:\'
401
- Force = $true
391
+ function global :Test-OrderFunction {
392
+ param ([Parameter (Position = 3 )]$Third , [Parameter (Position = 1 )]$First , [Parameter ()]$Named )
393
+ $First
394
+ $Third
395
+ $Named
402
396
}
403
-
404
- $file = New-MarkdownHelp @a
405
- $maml = $file | New-ExternalHelp - OutputPath " TestDrive:\TestOrderFunction.xml" - Force
397
+ $file = New-MarkdownHelp - Command ' Test-OrderFunction' - OutputFolder $TestDrive - Force
398
+ $maml = $file | New-ExternalHelp - OutputPath " $TestDrive \TestOrderFunction.xml" - Force
406
399
}
407
-
400
+
408
401
It " generates right order for syntax" {
409
402
$help = Get-HelpPreview - Path $maml
410
403
($help.Syntax.syntaxItem | measure).Count | Should Be 1
@@ -539,17 +532,17 @@ Describe 'New-ExternalHelpCab' {
539
532
It ' validates the output of Cab creation' {
540
533
541
534
New-ExternalHelpCab - CabFilesFolder $CmdletContentFolder - OutputFolder $OutputPath - LandingPagePath $ModuleMdPageFullPath
542
- $cab = (Get-ChildItem (Join-Path $OutputPath " PlatyPs_00000000-0000-0000-0000-000000000000_en-US_helpcontent .cab" )).FullName
535
+ $cab = (Get-ChildItem (Join-Path $OutputPath " PlatyPs_00000000-0000-0000-0000-000000000000_en-US_HelpContent .cab" )).FullName
543
536
$cabExtract = (Join-Path (Split-Path $cab - Parent) " OutXml" )
544
537
545
538
$cabExtract = Join-Path $cabExtract " HelpXml.xml"
546
539
547
540
expand $cab / f:* $cabExtract
548
541
549
- (Get-ChildItem - Filter " *.cab" - Path " $OutputPath " ).Name | Should Be " PlatyPs_00000000-0000-0000-0000-000000000000_en-US_helpcontent .cab"
542
+ (Get-ChildItem - Filter " *.cab" - Path " $OutputPath " ).Name | Should BeExactly " PlatyPs_00000000-0000-0000-0000-000000000000_en-US_HelpContent .cab"
550
543
(Get-ChildItem - Filter " *.xml" - Path " $OutputPath " ).Name | Should Be " PlatyPs_00000000-0000-0000-0000-000000000000_helpinfo.xml"
551
544
(Get-ChildItem - Filter " *.xml" - Path " $OutputPath \OutXml" ).Name | Should Be " HelpXml.xml"
552
- (Get-ChildItem - Filter " *.zip" - Path " $OutputPath " ).Name | Should Be " PlatyPs_00000000-0000-0000-0000-000000000000_en-US_helpcontent .zip"
545
+ (Get-ChildItem - Filter " *.zip" - Path " $OutputPath " ).Name | Should BeExactly " PlatyPs_00000000-0000-0000-0000-000000000000_en-US_HelpContent .zip"
553
546
}
554
547
555
548
It ' Creates a help info file' {
0 commit comments