Using Moq to verify execution of private methods
stackoverflow.com › questions › 6847463Jul 6, 2012 · Using Moq to verify execution of private methods. I want to test the following logic (this is obviously a stripped-down version of my method): public void myPublicMethod (params) { if (some_condition) privateMethod1 (); else privateMethod2 (); } I have all of the other dependencies in the method mocked out, and I've set this up so that I can guarantee that some_condition is true.