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 is not reported for ReceivedExtensions.Received calls #130

Closed
tpodolak opened this issue Jan 26, 2020 · 1 comment
Closed

NS1001 is not reported for ReceivedExtensions.Received calls #130

tpodolak opened this issue Jan 26, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tpodolak
Copy link
Member

Repro

using NSubstitute;
using NSubstitute.ReceivedExtensions;

namespace MyNamespace
{
    public class FooTests
    {
        public class Foo
        {
            public int Id { get; }
        }
        
        public void Test()
        {
            var secondSubstitute = Substitute.For<Foo>();
            
            var id = secondSubstitute.Received(Quantity.AtLeastOne()).Id;
        }
    } 
}
@tpodolak tpodolak added the bug Something isn't working label Jan 26, 2020
@tpodolak tpodolak self-assigned this Jan 26, 2020
@tpodolak tpodolak changed the title NS1001 not reported when ReceivedExtensions.Received used NS1001 is not reported for ReceivedExtensions.Received calls Jan 26, 2020
@tpodolak
Copy link
Member Author

tpodolak commented Feb 4, 2020

Closed by #132

@tpodolak tpodolak closed this as completed Feb 4, 2020
@tpodolak tpodolak added this to the 1.0.12 milestone Feb 4, 2020
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