Category: C#

C#, Moq, Unit Testing

Moq can’t setup methods with anonymous object arguments

Something frustrating I learned today about my favorite Mocking tool today, or at least in version 4.0 that I have installed, it can’t handle anonymous objects in method parameters. This is very depressing in web programming where it doesn’t make much sense to create a static DTO type for every version of a API call. …