Skip to content
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

Nuget.exe list delisted option is not propagated correctly in certain cases for V2Feeds, closes #4334 #1136

Merged
merged 3 commits into from
Jan 19, 2017

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Jan 19, 2017

This closes NuGet/Home#4334
In some cases the "IncludeDelisted" option is not propagated fully.

When we call nuget.exe list -source SomeSource -IncludeDelisted
The IncludeDelisted option value is not included in the filter construction, which means it'll default to false.

I have fixed this and added some extra tests for this scenario.

\cc
@mishra14 @rohit21agrawal @alpaix @emgarten @zhili1208 @jainaashish

@nkolev92 nkolev92 changed the title Nuget.exe list delisted option is not propagated correctly in certain cases for V2Feeds Nuget.exe list delisted option is not propagated correctly in certain cases for V2Feeds, closes #4334 Jan 19, 2017
Copy link
Contributor

@alpaix alpaix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kudos on tests!

}
}

Assert.True(ExpectedCount == ActualCount, "Expected was " + ExpectedCount + " but actual was " + ActualCount);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Assert.Equal to get exactly this 😄

}
}

Assert.True(ExpectedCount == ActualCount, "Expected was " + ExpectedCount + " but actual was " + ActualCount);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be easier to debug in the future if you verified the names that should be there also, typically this helps in tests. But this should cover everything.

@nkolev92 nkolev92 merged commit dbe9196 into dev Jan 19, 2017
@nkolev92 nkolev92 deleted the dev-nkolev92-list branch January 20, 2017 00:08
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.

Nuget.exe list delisted option is not propagated correctly in certain cases for V2Feeds
4 participants