protected internal and then use InternalsVisibleTo? On Mon, Feb 2, 2009 at 12:49 PM, Ayende Rahien <[email protected]> wrote:
> protected internal ? > Or you can invoke the method via reflection. > Rhino Mocks doesn't care > > > On Mon, Feb 2, 2009 at 8:44 PM, Tim Barcz <[email protected]> wrote: > >> Possible to set an expectation on a protected method when using partial >> mocks? >> >> I can fix the issue I'm seeing easily by changing the visiblity of the >> method to "public" but I would prefer not to do that (as I've done in the >> code below for "ExecutionScript" - I really want it protected) >> >> Thoughts? >> >> public abstract class WebScriptBase : IWebScript >> { >> public event WebScriptEventHandler ScriptComplete; >> >> #region Implementation of IWebScript >> >> public void Start() >> { >> var result = ExecutionScript(); >> >> var args = new WebScriptEventArgs(result); >> OnComplete(args); >> } >> >> #endregion >> >> public abstract WebScriptResult ExecutionScript(); >> >> protected virtual void OnComplete(WebScriptEventArgs e) >> { >> if (ScriptComplete != null) >> { >> ScriptComplete(this, e); >> } >> } >> } >> >> Tim >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RhinoMocks?hl=en -~----------~----~----~----~------~----~------~--~---
