public void TestDivide()
        {
            calcRef = new Calculator.CalculatorSoapClient();
            double d = calcRef.Divide(10.0, 2.0);

            Assert.AreEqual(d, 5.0);
        }
        public void DivideTest()
        {
            var calcRef  = new Calculator.CalculatorSoapClient();
            var quotient = calcRef.Divide(1, 1);

            Assert.AreEqual(1, quotient);
        }
        public void DivideByZeroTest()
        {
            var calcRef = new Calculator.CalculatorSoapClient();
            var div     = calcRef.Divide(25, 0);

            Assert.AreEqual(double.NaN, div);
        }
        public void TestDivide()
        {
            calcRef = new Calculator.CalculatorSoapClient();
            var quotient = calcRef.Divide(1.0, 1.0);

            Assert.AreEqual(1, quotient);
        }
        public void TestDivide()
        {
            var calcRef    = new Calculator.CalculatorSoapClient();
            var difference = calcRef.Divide(12, 4);

            Assert.AreEqual(3, difference);
        }
        public void TestDivide()
        {
            CalcRef = new Calculator.CalculatorSoapClient();
            double d = CalcRef.Divide(6, 3);

            Assert.AreEqual(d, 2);
        }
Beispiel #7
0
        public void TestForAll()
        {
            calcRef = new Calculator.CalculatorSoapClient();
            double e = calcRef.Subtrct(3.0, 2.0);
            double f = calcRef.Multiply(3.0, 5.0);
            double g = calcRef.Divide(6.0, 2.0);

            Assert.AreEqual(e, 1.0);
            Assert.AreEqual(f, 15.0);
            Assert.AreEqual(g, 3.0);
        }