I have daemon that provide some logic against the Moq framework.
How can I recognize that method in some IInvocationExpression corresponds exactly to method from library?
Currently I'm using some sort of approach:
var methodName = invocationExpression.InvocationExpressionReference.CurrentResolveResult.DeclaredElement.ToString()
// do something
Is there more elegant (or correct) way?