-
Notifications
You must be signed in to change notification settings - Fork 731
Filter the list of events returned by RaisePropertyChangeFor #2677
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
Filter the list of events returned by RaisePropertyChangeFor #2677
Conversation
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Pull Request Test Coverage Report for Build 9584175842Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9584308904Details
💛 - Coveralls |
dennisdoomen
left a comment
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.
Nice pull request. Lots of tricky situations to consider.
8d875b5 to
2bb5a3c
Compare
Pull Request Test Coverage Report for Build 10380338666Details
💛 - Coveralls |
|
@arocheleau just to be clear, if you have addressed the comments, please mark them as resolved and re-request a review. Then I'll know when to look at the rework. |
dennisdoomen
left a comment
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.
Great work
| subject.RaiseEventWithSenderAndPropertyName(nameof(EventRaisingClass.SomeOtherProperty)); | ||
|
|
||
| // Act | ||
| monitor.Should().RaisePropertyChangeFor(x => x.SomeProperty).Count().Should().Be(2); |
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.
| monitor.Should().RaisePropertyChangeFor(x => x.SomeProperty).Count().Should().Be(2); | |
| monitor.Should().RaisePropertyChangeFor(x => x.SomeProperty).Should().HaveCount(2); |
|
@arocheleau Let me know if you want to do something with the suggestions from @jnyrup so we know when to merge this PR. |
b315f16 to
926081a
Compare
926081a to
12ad8cc
Compare
|
@dennisdoomen I have applied the suggestions from @jnyrup |
The call to
RaisePropertyChangeForonEventAssertions<T>now returns a filtered list of events related to the property given as parameter. TheNotRaisePropertyChangeForfunction has been revised as well to match the behavior ofRaisePropertyChangeForespecially when the parameter provided isnull.This fixes #393.
IMPORTANT
./build.sh --target spellcheckor.\build.ps1 --target spellcheckbefore pushing and check the good outcome