public void TestDivide()
        {
            var calcRef    = new Calculator.CalculatorSoapClient();
            var difference = calcRef.Divide(12, 4);

            Assert.AreEqual(3, difference);
        }
        public void TestSubtract()
        {
            var calcRef = new Calculator.CalculatorSoapClient();
            var diff    = calcRef.Subtract(4, 12);

            Assert.AreEqual(-8, diff);
        }
        public void TestMultiply()
        {
            var calcRef = new Calculator.CalculatorSoapClient();
            var times   = calcRef.Multiply(4, 12);

            Assert.AreEqual(48, times);
        }
Exemple #4
0
        public void TestSubtrct()
        {
            var    calcRef = new Calculator.CalculatorSoapClient();
            double d       = calcRef.Subtrct(2.0, 2.0);

            Assert.AreEqual(0.0, d);
        }