File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2352,7 +2352,7 @@ function ConvertPsObjectsToMamlModel
2352
2352
$ParameterObject.PipelineInput = getPipelineValue $Parameter
2353
2353
$ParameterType = $Parameter.ParameterType
2354
2354
$ParameterObject.Type = getTypeString - typeObject $ParameterType
2355
- $ParameterObject.FullType = $ParameterType.FullName
2355
+ $ParameterObject.FullType = $ParameterType.ToString ()
2356
2356
2357
2357
$ParameterObject.ValueRequired = -not ($Parameter.Type -eq " SwitchParameter" ) # thisDefinition is a heuristic
2358
2358
Original file line number Diff line number Diff line change @@ -395,18 +395,22 @@ Describe 'New-MarkdownHelp' {
395
395
$WhatIf ,
396
396
[string ]
397
397
[Parameter (Position = 2 )]
398
- $CCC
398
+ $CCC ,
399
+ [System.Nullable ` 1 [System.Int32 ]]
400
+ [Parameter (Position = 3 )]
401
+ $ddd
399
402
)
400
403
}
401
404
402
405
It ' use full type name when specified' {
403
406
$expectedParameters = normalizeEnds @'
404
407
Type: System.String
408
+ Type: System.Nullable`1[System.Int32]
405
409
Type: System.Management.Automation.SwitchParameter
406
410
407
411
'@
408
412
$expectedSyntax = normalizeEnds @'
409
- Get-Alpha [-WhatIf] [[-CCC] <String>]
413
+ Get-Alpha [-WhatIf] [[-CCC] <String>] [[-ddd] <Int32>]
410
414
411
415
'@
412
416
@@ -419,11 +423,12 @@ Get-Alpha [-WhatIf] [[-CCC] <String>]
419
423
It ' not use full type name when specified' {
420
424
$expectedParameters = normalizeEnds @'
421
425
Type: String
426
+ Type: Int32
422
427
Type: SwitchParameter
423
428
424
429
'@
425
430
$expectedSyntax = normalizeEnds @'
426
- Get-Alpha [-WhatIf] [[-CCC] <String>]
431
+ Get-Alpha [-WhatIf] [[-CCC] <String>] [[-ddd] <Int32>]
427
432
428
433
'@
429
434
You can’t perform that action at this time.
0 commit comments