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

StrictFakeOptions.Allow* do not apply to overridden Object methods #1850

Merged
merged 5 commits into from
Jun 26, 2021

Conversation

blairconrad
Copy link
Member

No description provided.

@blairconrad blairconrad changed the title [WIP] StrictFakeOptions.Allow* to not apply to overridden Object methods [WIP] StrictFakeOptions.Allow* do not apply to overridden Object methods Jun 26, 2021
@blairconrad
Copy link
Member Author

blairconrad commented Jun 26, 2021

Currently builds on #1849. Only the 3 latest commits properly belong to this PR.
I would rebase once the other PR's merged.

@@ -58,6 +58,26 @@ public interface IMyInterface
.x(() => exception.Should().BeAnExceptionOfType<ExpectationException>());
}

Copy link
Member Author

Choose a reason for hiding this comment

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

None of the new tests initially passed.

Copy link
Member

@thomaslevesque thomaslevesque left a comment

Choose a reason for hiding this comment

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

Looks fine to me. And it looks like I had made the same mistake again with IsSameMethodAs/HasSameBaseMethodAs. Thanks @blairconrad!

@thomaslevesque
Copy link
Member

Should be merged automatically after you rebase

@blairconrad blairconrad changed the title [WIP] StrictFakeOptions.Allow* do not apply to overridden Object methods StrictFakeOptions.Allow* do not apply to overridden Object methods Jun 26, 2021
@thomaslevesque thomaslevesque merged commit 2d9b32f into FakeItEasy:master Jun 26, 2021
@blairconrad
Copy link
Member Author

Whoops! I foolishly changed the title before I rebased. Why? I don't know. I was here and not thinking and it automerged. We got an ugly graph. Sorry about that. Also, thanks for the review and auto-merge!

@blairconrad blairconrad deleted the strict-objectmethods branch June 26, 2021 18:36
@blairconrad blairconrad added this to the vNext milestone Jun 26, 2021
@afakebot
Copy link

afakebot commented Sep 1, 2021

This change has been released as part of FakeItEasy 7.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants