RhinoMocks has the AssertWasCalled
method which may serve the purpose of guaranteeing that a method calls another method... but I'm not sure you can do that on a private function of the same class you are unit testing. I think you could only do that if the two methods you wanted to stub were in another dependency class that was injected.
Nick
2010-03-01 20:31:29