Files
mono/mcs/class/System.ServiceModel/Test
Alexander Köplinger e7a2d94f75 [bcl] Fix a few hardcoded socket ports in tests (#5471)
* [System] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Runtime.Remoting] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

Additionally remove a copy of RemotingServicesTest.cs from corlib
which also exists in System.Runtime.Remoting in updated form.

* [System.ServiceModel] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Net.Http] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

The additional "keep-alive" header in Send_Complete_NoContent() and
Send_Transfer_Encoding_Chunked() is because we were using the same
port for all tests before so other tests would clear the header.
This doesn't happen now that we use distinct test ports.

* [System.ServiceModel.Web] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.
2017-08-31 10:53:35 +02:00
..
2010-07-25 20:17:39 +05:30

How to add a new test WCF Client/Server test:



1. In directory FeatureBased/Features.Contracts add a new contract and implementation class. It is best to copy an existing one and modify it.

2. In directory FeatureBased/Features.Serialization add a new test class. Again copy from a different test class, but remove all members. 

   Maintain the inheritance from TestFixtureBase<clientProxy, ServerImplementation, ServerContract>.  However, since you don't have a client

   proxy yet, use 'object' instead.

3. Run the WCFServers executable. This will start the server so it is now running.

4. In command prompt, in directory  Test\FeatureBased\Features.Client run "svcutil.exe <endpointbase>/<serverclassname>_wsdl /n:*,Proxy.MonoTests.Features.Client" e.g.

   svcutil http://localhost:9999/ExitProcessHelperServer_wsdl /n:*,Proxy.MonoTests.Features.Client

5. Include the file in the project

6. In the test class created in step #2, modify the name of the client proxy class to the name of the generated class.