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

Addition of DictionaryContainsKeyValuePairConstraint #3486

Merged
merged 7 commits into from
May 7, 2020

Conversation

Falco20019
Copy link
Contributor

Fixes #3470

Just a first idea to resolve it. Not sure if I implemented WithValue in DictionaryContainsKeyConstraint correctly. Also not sure if using KeyValuePair<TKey, TValue> is better or using the approach already used for properties (ResolvableConstraintExpression?) is better. This seemed to have worked for Does.ContainKey.WithValue and also Does.Not.ContainKey.WithValue.

Looking forward to feedback :)

rprouse
rprouse previously approved these changes Mar 5, 2020
Copy link
Member

@rprouse rprouse left a comment

Choose a reason for hiding this comment

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

I think this looks fine. We'll need a second review from the @nunit/framework-team though and if you have nothing you want to add, you'll need to remove the WIP.

@Falco20019 Falco20019 changed the title [WIP] Draft for DictionaryContainsKeyValuePairConstraint Addition of DictionaryContainsKeyValuePairConstraint Mar 5, 2020
@Falco20019
Copy link
Contributor Author

@rprouse / @nunit/framework-team
Any news on the second review?

Copy link
Member

@mikkelbu mikkelbu left a comment

Choose a reason for hiding this comment

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

Overall, I think it looks good, but I've some minor suggestions. Also we need to rerun "NUnit Framework CI", but I think a new commit or force push will do the trick

…ValuePairConstraint.cs

Co-Authored-By: Mikkel Nylander Bundgaard <mikkelbu@users.noreply.github.com>
Falco20019 and others added 5 commits April 2, 2020 12:45
…eConstraintTests.cs

Co-Authored-By: Mikkel Nylander Bundgaard <mikkelbu@users.noreply.github.com>
…ValuePairConstraint.cs

Co-Authored-By: Mikkel Nylander Bundgaard <mikkelbu@users.noreply.github.com>
…Constraint.cs

Co-Authored-By: Mikkel Nylander Bundgaard <mikkelbu@users.noreply.github.com>
@mikkelbu mikkelbu merged commit ec5f0b1 into nunit:master May 7, 2020
@mikkelbu
Copy link
Member

mikkelbu commented May 7, 2020

Thanks for supplying this PR @Falco20019, and sorry about the slow feedback from our side.

@Falco20019
Copy link
Contributor Author

Thanks for updating the PR. I totally forgot that I had open suggestions.

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.

Assertion for key-value-pair
3 participants