Might be a dumb question but is there an easy way to pass a reference to a method to a method?
I have a
test method and I want to compare how it behaves when calling either methodA or methodB (both of which obviously are interchangeable with the same return types and arguments).
I could just copy and paste the test method and do a find/replace on the called method names, but is there a better way?