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

Use a counter instead of relying in XPathNodeIterator.Count #5665

Merged
merged 2 commits into from
Aug 28, 2020

Conversation

paulomorgado
Copy link
Contributor

Solves #2051

@danmoseley
Copy link
Member

Is it possible to add a unit test?

@paulomorgado
Copy link
Contributor Author

Sure, @danmosemsft,

This was done right in GitHub. Adding a test will require a bit more work.

Where should I add the test?

This will be my first MSBuild Task unit test. Any model I can follow?

@paulomorgado
Copy link
Contributor Author

Done!

Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

src/Tasks.UnitTests/XmlPoke_Tests.cs Outdated Show resolved Hide resolved
src/Tasks.UnitTests/XmlPoke_Tests.cs Outdated Show resolved Hide resolved
Copy link
Member

@benvillalobos benvillalobos left a comment

Choose a reason for hiding this comment

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

LGTM, pending the changes @Forgind mentioned.

@paulomorgado
Copy link
Contributor Author

I'll do the changes, they are out of scope, but I'll do them.

Do you want Shouldly to be used on the entire test class or only on the added test method?

@benvillalobos
Copy link
Member

@paulomorgado Only the added test method.

Much appreciated!

@paulomorgado
Copy link
Contributor Author

Done!

@Forgind Forgind merged commit 091189a into dotnet:master Aug 28, 2020
@Forgind
Copy link
Member

Forgind commented Aug 28, 2020

Thanks!

@paulomorgado paulomorgado deleted the patch-1 branch August 28, 2020 16:41
paulomorgado added a commit to paulomorgado/dotnet-msbuild that referenced this pull request Aug 28, 2020
paulomorgado added a commit to paulomorgado/dotnet-msbuild that referenced this pull request Aug 29, 2020
paulomorgado added a commit to paulomorgado/dotnet-msbuild that referenced this pull request Aug 30, 2020
Forgind pushed a commit that referenced this pull request Sep 4, 2020
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.

6 participants