In my current project we want to test our mapping from sql to datamodels through a set of integration tests.
For this we need to basically assert all public properties on an object.
Is there a way to automatically generate assert statements for all public properties on an object? Setting the expected values would be our job, but the laborious job of writing the numerous assert statements would be something a computer could do.
I'm thinking of using a T4 template or maybe harness the awesomeness of resharper?