I'm doing a partial mock on a class with the following method:
protected virtual void Dispose(bool disposing)
How do I check that this call was received?
--
You received this message because you are subscribed to the Google Groups "NSubstitute" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nsubstitute/-/f59XwiU01MwJ.
To post to this group, send email to nsubs...@googlegroups.com.
To unsubscribe from this group, send email to nsubstitute...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nsubstitute?hl=en.
Hi Bill,NSubstitute can't check calls to protected methods.Maybe try manually overriding the class and trap the call yourself in that subclass? (This is known as the self-shunt pattern: http://c2.com/cgi/wiki?SelfShuntPattern)Regards,David
On Thu, Jun 7, 2012 at 3:45 AM, Bill Sorensen <bald...@gmail.com> wrote:
I'm doing a partial mock on a class with the following method:
protected virtual void Dispose(bool disposing)
How do I check that this call was received?
--
You received this message because you are subscribed to the Google Groups "NSubstitute" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nsubstitute/-/f59XwiU01MwJ.
To post to this group, send email to nsubs...@googlegroups.com.
To unsubscribe from this group, send email to nsubstitute+unsubscribe@googlegroups.com.