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

NS1002 higlights wrong member #87

Closed
tpodolak opened this issue Apr 7, 2019 · 0 comments
Closed

NS1002 higlights wrong member #87

tpodolak opened this issue Apr 7, 2019 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tpodolak
Copy link
Member

tpodolak commented Apr 7, 2019

var substitute = NSubstitute.Substitute.For<Foo>();
var x = substitute.When(x => x.Bar());

Similarly, as in #73, assuming that Bar is a non-virtual member, NS1002 is correctly reported, however the analyzer highlights x.Bar instead of x.Bar().

@tpodolak tpodolak added the bug Something isn't working label Apr 7, 2019
@tpodolak tpodolak self-assigned this Apr 7, 2019
tpodolak added a commit that referenced this issue Apr 7, 2019
dtchepak added a commit that referenced this issue Apr 7, 2019
…member

Gh 87 NS1002 higlights wrong member
@tpodolak tpodolak added this to the 1.0.8 milestone Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant