JasonBock / Rocks

A mocking library based on the Compiler APIs (Roslyn + Mocks)
MIT License
263 stars 20 forks source link

Protected Member Descriptions Can't Be Found #317

Closed JasonBock closed 5 months ago

JasonBock commented 5 months ago

Basically, if a non-public member is mocked (like SendAsync() on HttpClient), and no expectation is found, GetMemberDescription() won't find the member because the GetMembers() call is only looking for public members. The bug isn't severe, it just ends up that no description is in the message for the thrown ExpectedException.