-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add tests for ProxyCommand APIs to improve coverage #4791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
$newParameters = @($newHelpObj.parameters.parameter) | ||
$oldParameters.Length | Should Be $newParameters.Length | ||
for ($i = 0; $i -lt $oldParameters.Length; $i++) { | ||
$oldParameters[$i].name | Should Be $newParameters[$i].name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want report every value? Can we use Compare-Object
to be fast?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with $oldParameters.name -join "," | Should Be ($newParameters.name -join ",")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[string] $Message | ||
) | ||
|
||
DynamicParam { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why DynamicParams are needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind; I see it in the nd of the file.
Thanks @anmenaga! |
Address #4164
Examine the code in ProxyCommand.cs to find out specific missing areas.