Automated WCF RESTful System Testing with VS

I discovered a bit of a hack for automatically system test WCF services just using unit tests. Although, this is not the best testing practice, it does allow to quickly verify the behaviour of the service under several circumstances which are not easily 'testable' with simple unit tests e.g. authorized/unauthorized.

Unfortunately, VS doesn't allow to run unit tests and server at the same time, so you will need two instances of visual studio. In the first instance, run your project and in the second run your tests.

Below you can find the test method for verifying the behaviour of your test. The test is divided into 2 parts: sending the request and getting the response.

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box