Exemple #1
0
        public void TestAdd()
        {
            calcRef = new Calculator.CalculatorSoapClient();
            double d = calcRef.Add(2.0, 2.0);

            Assert.AreEqual(d, 4.0);
        }
        public void AddNegativesTest()
        {
            var calcRef = new Calculator.CalculatorSoapClient();
            var sum     = calcRef.Add(-1, -1);

            Assert.AreEqual(-2, sum);
        }
        public void AddTest()
        {
            var calcRef = new Calculator.CalculatorSoapClient();
            var sum     = calcRef.Add(1, 1);

            Assert.AreEqual(2, sum);
        }
        public void TestAdd()
        {
            var calcRef = new Calculator.CalculatorSoapClient();
            var sum     = calcRef.Add(4, 12);

            Assert.AreEqual(16, sum);
        }