You usually write unit test and integration test code separately using different technologies. For example, for unit test, you use some mocking framework like Moq to do the mocking. For integration test, you do not use any mocking, just some test classes
Read More...
Read the complete post at http://feedproxy.google.com/~r/OmarAlZabirBlog/~3/0cAJ4S6bL5E/do-unit-test-and-integration-test-from-same-test-code-using-conditional-compilation.aspx