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
-~----------~----~----~----~------~----~------~--~---