Legacy tests fails with EndpointNotFoundException because WcfTestClient does not start

24 Views Asked by At

The legacy code uses a service reference called DesignTime2ServiceReference and it connects to endpoint http://localhost:8733/Design_Time_Addresses/XXX

I have added "/client:WcfTestClient.exe" into [project > Properties > Debug > Start Options > Command Line Arguments]. When I do that the tests passes if they are debugged. But if I simply run them, they still fail.

Of cause I've tried to use the same trick for [project > Properties > Release > ...] but that does not work.

I am currently using VS 2022.

I have no idea how that was supposed to work once - and more pressingly - how to make it work now.

The tests are integration tests, implemented in MS Test and calling this code direcly:

using (var client = new DesignTime2ServiceReference.XXXClient())
0

There are 0 best solutions below