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

NS1001 higlights wrong member #73

Closed
tpodolak opened this issue Feb 21, 2019 · 0 comments
Closed

NS1001 higlights wrong member #73

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

Comments

@tpodolak
Copy link
Member

tpodolak commented Feb 21, 2019

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

Assuming that Bar is non virtual member, NS1001 is correctly reported, however the analyzer highlight
substitute.Received(1) instead of Bar(). Alternatively it should higligt entire invocation expression substitute.Received(1).Bar(); if the previous one is not feasible

Blocks #70

@tpodolak tpodolak added the bug Something isn't working label Feb 21, 2019
@tpodolak tpodolak self-assigned this Feb 21, 2019
tpodolak added a commit that referenced this issue Feb 26, 2019
@tpodolak tpodolak added this to the 1.0.7 milestone Mar 15, 2019
@tpodolak tpodolak added this to the 1.0.7 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