コード例 #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(Math.IMathClient client)
        {
            DivReply result = client.Div(new DivArgs.Builder {
                Dividend = 10, Divisor = 3
            }.Build());

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