You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is a protected method not only available for the class, which inherits from that other class with it's protected method? So it's by design not a choice of Moq?
@Prodigio, it's perfectly possible for Moq to set up protected members, as long as they are overridable.
@hh23485, AFAIK, this isn't "by design" because this part of Moq's API was added by contributors, and this particular method simply wasn't included in past contributions. Generally speaking, some APIs that got added later on (such as those behind .Protected() or .SetupSequence(...)) simply aren't as feature-complete as the main API for public members mainly for historical reasons.
Does ReturnsAsnyc not available for protected setup?
It works in non-protected functions, but can't in protected? is by design?
The text was updated successfully, but these errors were encountered: