title: How to Configure Test Deployment with the file LocalTestRun.testrunconfig?
body: <p>First of all sorry if the question is not very clear.
  I am learning nHibernate from the <a href="http://summerofnhibernate.com/" rel="nofollow">summerofnhibernate.com</a>, in the first chapter when I run a test project, I get the following error: Test method TestProject1.NHibernateDataProviderTestTest.CanGetCustomerByIdTest threw exception:  NHibernate.HibernateException: problem parsing configuration : System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies;PrivateAssemblies\hibernate.cfg.xml'.</p>
  
  <p>I have googled the problem, and the search says that the VS 2008 path is wrong(buggy), to place hibernate.cfg.xml in test project and adding the attribute: [TestMethod(), DeploymentItem("hibernate.cfg.xml")]
  After having done this I still get the same problem.</p>
  
  <p>But when I use Visual Studio 2010 I get the following error:
  Test method TestProject1.NHibernateDataProviderTestTest.CanGetCustomerByIdTest threw exception: 
  System.NullReferenceException: Object reference not set to an instance of an object. </p>