diff options
Diffstat (limited to 'csharp/test/Ice/networkProxy/Client.cs')
-rw-r--r-- | csharp/test/Ice/networkProxy/Client.cs | 39 |
1 files changed, 5 insertions, 34 deletions
diff --git a/csharp/test/Ice/networkProxy/Client.cs b/csharp/test/Ice/networkProxy/Client.cs index 04e3d713a21..094cfddf41d 100644 --- a/csharp/test/Ice/networkProxy/Client.cs +++ b/csharp/test/Ice/networkProxy/Client.cs @@ -8,7 +8,6 @@ // ********************************************************************** using System; -using System.Diagnostics; using System.Reflection; [assembly: CLSCompliant(true)] @@ -17,45 +16,17 @@ using System.Reflection; [assembly: AssemblyDescription("Ice test")] [assembly: AssemblyCompany("ZeroC, Inc.")] -public class Client +public class Client : TestCommon.Application { - public static int run(string[] args, Ice.Communicator communicator) + public override int run(string[] args) { - AllTests.allTests(communicator); + AllTests.allTests(this); return 0; } public static int Main(string[] args) { - int status = 0; - Ice.Communicator communicator = null; - - try - { - Ice.InitializationData initData = new Ice.InitializationData(); - initData.properties = Ice.Util.createProperties(ref args); - communicator = Ice.Util.initialize(ref args, initData); - status = run(args, communicator); - } - catch(System.Exception ex) - { - Console.Error.WriteLine(ex); - status = 1; - } - - if(communicator != null) - { - try - { - communicator.destroy(); - } - catch(Ice.LocalException ex) - { - Console.Error.WriteLine(ex); - status = 1; - } - } - - return status; + Client app = new Client(); + return app.runmain(args); } } |