O'Reilly logo
  • Nick Haen thinks this is interesting:

Moq evaluates the behaviors in reverse order, so that it considers the most recent calls to the Setup method first. This means that you have to take care to create your mock behaviors in order from the most general to the most specific.


Cover of Pro ASP.NET MVC 5, Fifth Edition


Moq Setup ordering note.