public async Task DivAsync() { DivReply response = await client.DivAsync(new DivArgs { Dividend = 10, Divisor = 3 }); Assert.AreEqual(3, response.Quotient); Assert.AreEqual(1, response.Remainder); }
public void DivAsync() { Task.Run(async() => { DivReply response = await client.DivAsync(new DivArgs.Builder { Dividend = 10, Divisor = 3 }.Build()); Assert.AreEqual(3, response.Quotient); Assert.AreEqual(1, response.Remainder); }).Wait(); }