I have the following class, I use this class to assign functionality to another class. How do I mock the "PrivatelyDoWork" method using JustMock? I also want to Assert that the "DoPrivateWork" has been call for a certain number of occurances. Thanks.
internal
class
MyClass
{
private
MyClass()
{
}
private
void
PrivatelyDoWork(
string
stringValue)
{
}
public
static
Action<
object
> HowMyClassWorks()
{
return
(myString) =>
new
MyClass().PrivatelyDoWork((
string
)myString);
}
}