summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/facets/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/facets/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/facets/Server.cs')
-rw-r--r--csharp/test/Ice/facets/Server.cs55
1 files changed, 28 insertions, 27 deletions
diff --git a/csharp/test/Ice/facets/Server.cs b/csharp/test/Ice/facets/Server.cs
index ac2e5bab2ab..5f87c388689 100644
--- a/csharp/test/Ice/facets/Server.cs
+++ b/csharp/test/Ice/facets/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 facets
{
- using(var communicator = initialize(ref args))
+ public class Server : TestHelper
{
- communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
- Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
- Ice.Object d = new DI();
- adapter.add(d, Ice.Util.stringToIdentity("d"));
- adapter.addFacet(d, Ice.Util.stringToIdentity("d"), "facetABCD");
- Ice.Object f = new FI();
- adapter.addFacet(f, Ice.Util.stringToIdentity("d"), "facetEF");
- Ice.Object h = new HI(communicator);
- adapter.addFacet(h, Ice.Util.stringToIdentity("d"), "facetGH");
+ public override void run(string[] args)
+ {
+ var properties = createTestProperties(ref args);
+ properties.setProperty("Ice.Package.Test", "Ice.facets");
+ using(var communicator = initialize(properties))
+ {
+ communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
+ Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
+ Ice.Object d = new DI();
+ adapter.add(d, Ice.Util.stringToIdentity("d"));
+ adapter.addFacet(d, Ice.Util.stringToIdentity("d"), "facetABCD");
+ Ice.Object f = new FI();
+ adapter.addFacet(f, Ice.Util.stringToIdentity("d"), "facetEF");
+ Ice.Object h = new HI(communicator);
+ adapter.addFacet(h, Ice.Util.stringToIdentity("d"), "facetGH");
+ adapter.activate();
+ serverReady();
+ communicator.waitForShutdown();
+ }
+ }
- adapter.activate();
- communicator.waitForShutdown();
+ public static int Main(string[] args)
+ {
+ return TestDriver.runTest<Server>(args);
+ }
}
}
-
- public static int Main(string[] args)
- {
- return Test.TestDriver.runTest<Server>(args);
- }
}