public void ServerTestThreadProc() { // Run synchronous tests SyncServerTests tests = new SyncServerTests(this); tests.BasicServerTest(); tests.IntermediateServerTest(); tests.AdvancedServerTest(); // Run asynchronous tests AsyncServerTests asyncTests = new AsyncServerTests(this); asyncTests.BasicAsyncServerTest(); asyncTests.IntermediateAsyncServerTest(); asyncTests.AdvancedAsyncServerTest(); }
public void ClientTestThreadProc() { Thread.Sleep(500); // Ensure that the server is ready! // Run synchronous tests SyncServerTests tests = new SyncServerTests(this); tests.BasicClientTest(); Thread.Sleep(200); tests.IntermediateClientTest(); Thread.Sleep(200); tests.AdvancedClientTest(); // Run asynchronous tests AsyncServerTests asyncTests = new AsyncServerTests(this); asyncTests.BasicAsyncClientTest(); Thread.Sleep(200); asyncTests.IntermediateAsyncClientTest(); Thread.Sleep(200); asyncTests.AdvancedAsyncClientTest(); }