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(); await Twoways.RunAsync(cl); output.WriteLine("ok"); if (!collocated) { output.Write("testing twoway operations with AMI... "); output.Flush(); await TwowaysAMI.RunAsync(cl); output.WriteLine("ok"); } output.Write("shutting down server... "); output.Flush(); await cl.ShutdownAsync(); output.WriteLine("ok"); }
public static IMyClassPrx allTests(TestHelper helper, bool collocated) { Communicator?communicator = helper.Communicator(); TestHelper.Assert(communicator != null); TextWriter output = helper.GetWriter(); var cl = IMyClassPrx.Parse($"test:{helper.GetTestEndpoint(0)}", communicator); output.Write("testing twoway operations... "); output.Flush(); Twoways.twoways(cl); output.WriteLine("ok"); if (!collocated) { output.Write("testing twoway operations with AMI... "); output.Flush(); TwowaysAMI.twowaysAMI(cl); output.WriteLine("ok"); } return(cl); }
public static IMyClassPrx Run(TestHelper helper, bool collocated) { Communicator?communicator = helper.Communicator(); TestHelper.Assert(communicator != null); TextWriter output = helper.GetWriter(); var cl = IMyClassPrx.Parse(helper.GetTestProxy("test", 0), communicator); output.Write("testing twoway operations... "); output.Flush(); Twoways.Run(cl); output.WriteLine("ok"); if (!collocated) { output.Write("testing twoway operations with AMI... "); output.Flush(); TwowaysAMI.Run(cl); output.WriteLine("ok"); } return(cl); }