diff options
Diffstat (limited to 'csharp/test/Ice/packagemd/Server.cs')
-rw-r--r-- | csharp/test/Ice/packagemd/Server.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/csharp/test/Ice/packagemd/Server.cs b/csharp/test/Ice/packagemd/Server.cs new file mode 100644 index 00000000000..bf5252fc4fb --- /dev/null +++ b/csharp/test/Ice/packagemd/Server.cs @@ -0,0 +1,40 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +using System; +using System.Reflection; + +[assembly: CLSCompliant(true)] + +[assembly: AssemblyTitle("IceTest")] +[assembly: AssemblyDescription("Ice test")] +[assembly: AssemblyCompany("ZeroC, Inc.")] + +public class Server : Test.TestHelper +{ + public override void run(string[] args) + { + Ice.Properties properties = createTestProperties(ref args); + properties.setProperty("Ice.Package.Test", "test.Ice.packagemd"); + properties.setProperty("Ice.Package.Test1", "test.Ice.packagemd"); + using (var communicator = initialize(properties)) + { + properties.setProperty("TestAdapter.Endpoints", getTestEndpoint(0)); + var adapter = communicator.createObjectAdapter("TestAdapter"); + adapter.add(new InitialI(), Ice.Util.stringToIdentity("initial")); + adapter.activate(); + communicator.waitForShutdown(); + } + } + + public static int Main(string[] args) + { + return Test.TestDriver.runTest<Server>(args); + } +} |