Esempio n. 1
0
        public override void run(string[] args)
        {
            var properties = createTestProperties(ref args);

            properties["Ice.Warn.Dispatch"] = "0";
            using var communicator          = initialize(properties, typeIdNamespaces: new string[] { "Ice.objects.TypeId" });
            communicator.SetProperty("TestAdapter.Endpoints", getTestEndpoint(0));
            ObjectAdapter adapter = communicator.CreateObjectAdapter("TestAdapter");

            adapter.Add(new Initial(adapter), "initial");
            adapter.Add(new F2(), "F21");
            var uoet = new UnexpectedObjectExceptionTest();

            adapter.Add(uoet.Dispatch, "uoet");
            Test.AllTests.allTests(this);
        }
Esempio n. 2
0
        public override void Run(string[] args)
        {
            var properties = CreateTestProperties(ref args);

            properties["Ice.Warn.Dispatch"] = "0";
            using var communicator          = Initialize(properties, typeIdNamespaces: new string[] { "Ice.objects.TypeId" });
            communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0));
            ObjectAdapter adapter = communicator.CreateObjectAdapter("TestAdapter");

            adapter.Add("initial", new Initial(adapter));
            adapter.Add("F21", new F2());
            var uoet = new UnexpectedObjectExceptionTest();

            adapter.Add("uoet", uoet);
            adapter.Activate();
            ServerReady();
            communicator.WaitForShutdown();
        }