-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Example
- Loading branch information
StartAutomating
authored and
StartAutomating
committed
Mar 9, 2024
1 parent
2c6f808
commit cf8df1d
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
Tests/Examples/Template.PowerShell.Help.examples.tests.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
describe 'Template.PowerShell.Help' { | ||
it 'Template.PowerShell.Help Example 1' { | ||
{ | ||
[Help(Synopsis="The Synopsis", Description="A Description")] | ||
param() | ||
|
||
|
||
"This Script Has Help, Without Directly Writing Comments" | ||
|
||
} | .>PipeScript | ||
} | ||
it 'Template.PowerShell.Help Example 2' { | ||
{ | ||
param( | ||
[Help(Synopsis="X Value")] | ||
$x | ||
) | ||
} | .>PipeScript | ||
} | ||
it 'Template.PowerShell.Help Example 3' { | ||
{ | ||
param( | ||
[Help("X Value")] | ||
$x | ||
) | ||
} | .>PipeScript | ||
} | ||
} | ||
|