diff options
author | Jose <jose@zeroc.com> | 2018-06-01 17:41:03 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-06-01 17:41:03 +0200 |
commit | cbe92e540a7f02f0bdf93192424bd119189365b7 (patch) | |
tree | 411c50dc0ae9c669d31a940b1b4903b5deac4f12 /csharp/test/IceSSL/configuration/Client.cs | |
parent | Fixed Util.py check for binary installation directory on Windows (diff) | |
download | ice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.bz2 ice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.xz ice-cbe92e540a7f02f0bdf93192424bd119189365b7.zip |
Do not use Ice::Application for Ice testsuite
Diffstat (limited to 'csharp/test/IceSSL/configuration/Client.cs')
-rw-r--r-- | csharp/test/IceSSL/configuration/Client.cs | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/csharp/test/IceSSL/configuration/Client.cs b/csharp/test/IceSSL/configuration/Client.cs index c6a66faa080..92249624dcc 100644 --- a/csharp/test/IceSSL/configuration/Client.cs +++ b/csharp/test/IceSSL/configuration/Client.cs @@ -16,26 +16,25 @@ using System.Reflection; [assembly: AssemblyDescription("Ice test")] [assembly: AssemblyCompany("ZeroC, Inc.")] -public class Client : TestCommon.Application +public class Client : Test.TestHelper { - public override int run(string[] args) + public override void run(string[] args) { - if(args.Length < 1) + using(var communicator = initialize(ref args)) { - Console.Error.WriteLine("Usage: client testdir"); - return 1; - } - - Test.ServerFactoryPrx factory; - factory = AllTests.allTests(this, args[0]); - factory.shutdown(); + if(args.Length < 1) + { + throw new ArgumentException("Usage: client testdir"); + } - return 0; + Test.ServerFactoryPrx factory; + factory = AllTests.allTests(this, args[0]); + factory.shutdown(); + } } public static int Main(string[] args) { - Client app = new Client(); - return app.runmain(args); + return Test.TestDriver.runTest<Client>(args); } } |