blob: ff400785ae049435680836ad24f99ed7891a58b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (c) ZeroC, Inc. All rights reserved.
using System.IO;
using System.Threading.Tasks;
using ZeroC.Test;
namespace ZeroC.Ice.Test.SeqMapping
{
public static class AllTests
{
public static async Task RunAsync(TestHelper helper, bool collocated)
{
Communicator communicator = helper.Communicator;
TextWriter output = helper.Output;
var cl = IMyClassPrx.Parse(helper.GetTestProxy("test", 0), communicator);
output.Write("testing twoway operations... ");
output.Flush();
Twoways.Run(communicator, cl);
output.WriteLine("ok");
if (!collocated)
{
output.Write("testing twoway operations with AMI... ");
output.Flush();
TwowaysAMI.Run(communicator, cl);
output.WriteLine("ok");
}
output.Write("shutting down server... ");
output.Flush();
await cl.ShutdownAsync();
output.WriteLine("ok");
}
}
}
|