I have be trying to look for an effective way in unit testing my data access layer in C#. I\'m primary a Java developer and have only used C# for about 6 months, in the past
This layer's job is to connect the code to the database. It has to encapsulate the knowledge about db connection and syntax. In usually maps the domain language to database language. I look at this part of the unit tests as integration test, and as such I test that the database schema is equivalent against real or test database. More on the subject here.