I have ONE class. There is a method (let's call it Process(data)) that when called can branch off and call 1 of x functions (let's say ProcessA(), ProcessB(), ProcessC()) of that SAME class based on some parameters I pass in. How can I verify a certain function got called that I'm expecting based on the parameter data I enter?
All the examples I've seen do this on a mocked object passed into another object, but I need this on the same, one, object.
[EDIT] This is different from the question someone marked as Duplicate because this has nothing to do with a base class. Inside this class I have a dictionary of function pointers where the key is a value that is passed on from the config data so it branches off and I need to test that's all working correctly and the correct function is being called based on that config data. This is different than the possible duplicate.