When I tried to run a working Ivonna test, previously targeted at .NET 3.5, against .NET 4 I found my test failing with the error

-—– Test started: Assembly: Webpart.Tests.dll ——

Bad Request Setup information Physical Web path: C:ProjectsTestTypeMockSampleTestWebSite Actual path: C:UsersfezAppDataLocalTempTemporary ASP.NET Filesroot156567f2

Turns out that the fix to simple, you have to use an absolute path i.e. the / in front of the BasicTest.aspx is vital

\[TestMethod, Isolated\]
    public void LoadWebPage\_HelloWorldWebPart\_NoError()
        {
        TestSession session = new TestSession(); //Start each test with this
            WebRequest request = new WebRequest("/BasicTest.aspx"); //Create a WebRequest object
        WebResponse response = session.ProcessRequest(request); //Process the request
            System.Web.UI.Page page = response.Page;
        //Check the page loaded
            Assert.IsNotNull(page);
    }

So this is a temporary work around for now, for me it is not an issue having to use a absolute path. I understand from the [writer of Ivonna](http://www.sm-art.biz/Ivonna.aspx) that this issue will be further investigated now that .NET 4.0 has RTM’d