System.NullReferenceException when trying to read config file from a unit test project
<p>Am doing a unit test, testing my connection string. This is the code I have on my test method:</p>

<pre><code> [TestMethod()]
    public void connectionStringTest()
    {
        //string expected = null; // TODO: Initialize to an appropriate value
        string actual;

        string expected = " User Id=ownitsbio;Password=ownitsbio;Data Source=preprod";
        actual = ConfigurationManager.ConnectionStrings["ownitsbio"].ConnectionString;

        Assert.AreEqual(expected, actual);
        //Assert.Inconclusive(expected);

    }
</code></pre>

<p>I get this error <code>System.NullReferenceException: Object reference not set to an instance of an object</code>. What could be the problem?? Please help!</p>
