Testing WCF Modules Visual Studio 2010

Im spelling unit test for the WCF service I wrote. The fact is that when I run unit test, it throws me an error saying that there is no listening to the endpoint. I need to compile my WCF service and then run unit test.

Is there any other way when unit test starts and hosts the WCF service and then starts testing.

Thanks in advance

+3
source share
1 answer

Running a test against the actual WCF service will not be unit testing, it will be integration testing; if you want to do this, you will do this as part of an automatic build process that deploys the service and then runs your tests.

unit test , WCF , .

+5

All Articles