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 - doesnt detect non-virtual calls from base classe #89

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

NS1002 - doesnt detect non-virtual calls from base classe #89

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

Repro

using NSubstitute;
namespace MyNamespace
{
    public class AbstractFoo
    {
        public int Bar()
        {
            return 1;
        }
    }

    public class Foo : AbstractFoo
    {
    }
    
    public class FooTests
    {
        public void Test()
        {
            var foo = new Foo();

            foo.When(xx => xx.Bar()); // xx.Bar() is not higlighted
        }
    }
}
@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
…ds calling non-virtual member from base class
tpodolak added a commit that referenced this issue Apr 8, 2019
[GH-89] - Correctly reporting non-virtual member usage for When method calling non-virtual member from base class
@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