Skip to content

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

Merged
merged 2 commits into from
Sep 11, 2017

Conversation

daxian-dbw
Copy link
Member

Address #4164
Examine the code in ProxyCommand.cs to find out specific missing areas.

@daxian-dbw daxian-dbw self-assigned this Sep 8, 2017
@daxian-dbw daxian-dbw requested a review from anmenaga September 8, 2017 23:41
$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
Copy link
Collaborator

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?

Copy link
Member Author

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 ",")

Copy link

@anmenaga anmenaga left a 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 {

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?

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.

@daxian-dbw
Copy link
Member Author

Thanks @anmenaga!

@daxian-dbw daxian-dbw merged commit ad0b4cc into PowerShell:master Sep 11, 2017
@daxian-dbw daxian-dbw deleted the proxy branch September 11, 2017 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants