I wrote a class for communicating programs using the Windows Communication Foundation . I switched to the testing phase, and I realized that I don’t have any special ideas for what to test.

Currently being tested for connection, sending, receiving simple messages (small class).

Question : What exceptional moments can arise when working with WCF?

  • and what are you going to test exactly the WCF data transfer protocol? I will clarify a bit, why do tests work with WCF? - Seyran
  • more need to test the performance of the written class, for unpredictable cases. - IVsevolod

1 answer 1

if you plan to test the logic of the class (methods, functions), then the flag is in your hands, because unit testing is what it is for. And using Mocks, you can safely isolate your class from data providers and completely cover it with tests. How does the WCF participate here, I do not understand. And again, even if you plan to write integration tests, then they will need to describe their client to WCF services, which again is not justified because there is no point in testing the tests (I apologize for the pun). It is more correct to make test coverage of the client separately locked up the calls to the services, and having isolated the services accordingly from its data providers. I hope I explained quite extensively. The comment did not fit, let it be the answer :).