// Copyright (c) ZeroC, Inc. All rights reserved. using System.Threading.Tasks; using ZeroC.Test; namespace ZeroC.Ice.Test.SeqMapping { public class Collocated : TestHelper { public override async Task RunAsync(string[] args) { await Communicator.ActivateAsync(); Communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0)); var adapter = Communicator.CreateObjectAdapter("TestAdapter"); adapter.Add("test", new MyClass()); // Don't activate OA to ensure collocation is used. await AllTests.RunAsync(this, true); } public static async Task Main(string[] args) { await using var communicator = CreateCommunicator(ref args); return await RunTestAsync(communicator, args); } } }