c# - Communication Module Automation Testing -


i developed communication protocol module between 2 machine in our product. explicit protocol , not possible use standart protocol wcf or webservices

there 2 functionalities module: 1. send notification end point 1 end point 2 2. send request end point 1 end point 2 , receive response end point 2 in end point 1.

before doing full integration tests between 2 machines (the other side written in c++) wrote client console , server console simulate manually 2 main funcionalities on local tcp in localhost.

what best way automate test in solution build process? tries use unit test framework didnt worked well. when using unit tests framework had run client , server in 2 different threads , didnt go fluently...

you use mocking framework such moq in unit tests allow simulate connection endpoint 2. allow test endpoint 1 behaves of possible types of response endpoint 2. example, assert endpoint 1 throws exception if cannot connect endpoint 2.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -