示例#1
0
        public void Div1()
        {
            DivReply response = client.Div(new DivArgs.Builder {
                Dividend = 10, Divisor = 3
            }.Build());

            Assert.AreEqual(3, response.Quotient);
            Assert.AreEqual(1, response.Remainder);
        }
示例#2
0
        public static void DivExample(MathGrpc.IMathServiceClient stub)
        {
            DivReply result = stub.Div(new DivArgs.Builder {
                Dividend = 10, Divisor = 3
            }.Build());

            Console.WriteLine("Div Result: " + result);
        }