summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/proxy/Server.cs
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-07-20 19:19:30 +0200
committerJose <jose@zeroc.com>2018-07-20 19:19:30 +0200
commitf831849a119aa592d207fd38428517b414c2b39d (patch)
tree88c4d1c69072ad45eda621079f0d1d8b89a1fd8e /csharp/test/Ice/proxy/Server.cs
parentUpdate Travis CI build to use ubuntu-18.04 (diff)
downloadice-f831849a119aa592d207fd38428517b414c2b39d.tar.bz2
ice-f831849a119aa592d207fd38428517b414c2b39d.tar.xz
ice-f831849a119aa592d207fd38428517b414c2b39d.zip
Xamarin testsuite
Diffstat (limited to 'csharp/test/Ice/proxy/Server.cs')
-rw-r--r--csharp/test/Ice/proxy/Server.cs57
1 files changed, 29 insertions, 28 deletions
diff --git a/csharp/test/Ice/proxy/Server.cs b/csharp/test/Ice/proxy/Server.cs
index 7214723faf3..fbde39fc50a 100644
--- a/csharp/test/Ice/proxy/Server.cs
+++ b/csharp/test/Ice/proxy/Server.cs
@@ -7,38 +7,39 @@
//
// **********************************************************************
-using System;
-using System.Reflection;
+using Test;
-[assembly: CLSCompliant(true)]
-
-[assembly: AssemblyTitle("IceTest")]
-[assembly: AssemblyDescription("Ice test")]
-[assembly: AssemblyCompany("ZeroC, Inc.")]
-
-public class Server : Test.TestHelper
+namespace Ice
{
- public override void run(string[] args)
+ namespace proxy
{
- Ice.Properties properties = createTestProperties(ref args);
- //
- // We don't want connection warnings because of the timeout test.
- //
- properties.setProperty("Ice.Warn.Connections", "0");
- properties.setProperty("Ice.Warn.Dispatch", "0");
-
- using(var communicator = initialize(properties))
+ public class Server : TestHelper
{
- communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
- Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
- adapter.add(new MyDerivedClassI(), Ice.Util.stringToIdentity("test"));
- adapter.activate();
- communicator.waitForShutdown();
- }
- }
+ public override void run(string[] args)
+ {
+ var properties = createTestProperties(ref args);
+ //
+ // We don't want connection warnings because of the timeout test.
+ //
+ properties.setProperty("Ice.Warn.Connections", "0");
+ properties.setProperty("Ice.Warn.Dispatch", "0");
+ properties.setProperty("Ice.Package.Test", "Ice.proxy");
- public static int Main(string[] args)
- {
- return Test.TestDriver.runTest<Server>(args);
+ using(var communicator = initialize(properties))
+ {
+ communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
+ var adapter = communicator.createObjectAdapter("TestAdapter");
+ adapter.add(new MyDerivedClassI(), Ice.Util.stringToIdentity("test"));
+ adapter.activate();
+ serverReady();
+ communicator.waitForShutdown();
+ }
+ }
+
+ public static int Main(string[] args)
+ {
+ return TestDriver.runTest<Server>(args);
+ }
+ }
}
}