Home > .Net > Testing WCF services using MSTest

Testing WCF services using MSTest

However it’s possible to test your WCF services using unit test by just referencing your service implementation (see Ploeh’s Blog) You gain a lot of benefit if you use the WCF infra structure to test your services.

For Example, did you ever get the error message during integration test (or worse, production) because your message couldn’t be serialized because of a null value. This wouldn’t happen if your unit test were using WCF. Espacially when you have large messages with a lot of elements.

See Howard’s blog how to implement this.


Categories: .Net Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.