views:

400

answers:

1

Hi there,

Can anyone help, i have been succesfully testing with the built in tdd that ships with vs 2008. But now i wish to test my wcf... I added a default.aspx in the wcf service (you need to do this according the ms) ... now when i put a break point in my test.. and click the icon debug test in current context, all goes well ..,the test runs but where my break point is it states that "no symbols have been loaded", this only happens when i launch the test...

I think its something ot do the pdb file, anyone done tdd testing in wcf ..

here is my test.appreciate any feedback.

    /// <summary>
    ///A test for GetListAvailableByCity
    ///</summary>
    // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
    // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
    // whether you are testing a page, web service, or a WCF service.
    [TestMethod()]
    [HostType("ASP.NET")]
    [UrlToTest("http://localhost/MyLocalService")]
    public void GetListAvailableByCityTest()
    {
        myService target = new myService();  // test runs perfect but never lands in the debug...



    }
A: 

Make sure that you have built your wcf service in debug mode.

If your service is in IIS you can attach to the aspnet process. Also make sure the debug=true is set in your web.config.

Shiraz Bhaiji