I am writing an OnActionExecuting action filter and I want to unit test the functionality.
One of the things the filter needs to do is to performs some validation on the action arguments passed into the filter.
I am getting the arguments from the actionContext.ActionArguments Dictionary which is working fine for the implementation but I am having a difficult time managing to unit test it.
In my test I cannot set actionContext.ActionArguments as it has no setter an nor can I mock it as it is not virtual.
This leaved me in a bit of a quandary as to whether I can get any value from unit tests in this scenario?