예제 #1
0
        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);
        }
예제 #2
0
 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();
 }