Repository navigation
add get-help tests for alias - #4895
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
Conversation
2e47d98 to
e76aa91
Compare
There was a problem hiding this comment.
You can store the output of Get-Help wher? into a variable and then check for Category and Synopsis.
There was a problem hiding this comment.
resolved
There was a problem hiding this comment.
This seems wrong
PS> get-help wher?
Name : where
Category : Alias
Synopsis : Where-Object
Component :
Role :
Functionality :There was a problem hiding this comment.
resolved
e76aa91 to
90eb452
Compare
There was a problem hiding this comment.
(Get-Help where).Name | Should BeExactly "Where-Object" There was a problem hiding this comment.
resolved
There was a problem hiding this comment.
How about adding a test for '*' pattern? Maybe Get-Help spp*
There was a problem hiding this comment.
resolved
There was a problem hiding this comment.
Also, BeExactly
There was a problem hiding this comment.
resolved
There was a problem hiding this comment.
Also, BeExactly
There was a problem hiding this comment.
resolved
90eb452 to
c561d92
Compare
|
thanks, your comment is resolved Aditya Patwardhan (@adityapatwardhan) |
There was a problem hiding this comment.
Please add Remove-Item alias:\testAlias1
There was a problem hiding this comment.
resolved
c561d92 to
fe9e3dc
Compare
|
Aditya Patwardhan (@adityapatwardhan) your comment is resolved |
fe9e3dc to
49f9d93
Compare
49f9d93 to
81ac338
Compare
Aditya Patwardhan (adityapatwardhan)
left a comment
There was a problem hiding this comment.
LGTM
this is to resolve #4167
added help alias tests.
For other concerns of the issue:
SaveTests are located at UpdatableHelpSystem.Tests.ps1
Major methods of HelpProviderWithCache are never implemented as all the classes derived from the class have implemented override methods of SearchHelp and ExactMatchHelp:
\src\System.Management.Automation\help\CommandHelpProvider.cs(30): internal class CommandHelpProvider : HelpProviderWithCache
\src\System.Management.Automation\help\DscResourceHelpProvider.cs(15): internal class DscResourceHelpProvider : HelpProviderWithCache
\src\System.Management.Automation\help\HelpFileHelpProvider.cs(24): internal class HelpFileHelpProvider : HelpProviderWithCache
\src\System.Management.Automation\help\HelpProviderWithFullCache.cs(20): internal abstract class HelpProviderWithFullCache : HelpProviderWithCache
\src\System.Management.Automation\help\ProviderHelpProvider.cs(22): internal class ProviderHelpProvider : HelpProviderWithCache
\src\System.Management.Automation\help\PSClassHelpProvider.cs(15): internal class PSClassHelpProvider : HelpProviderWithCache