コード例 #1
0
        public void Subtract_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Subtract(1, 2);

            Assert.AreEqual(-1, result);
        }
コード例 #2
0
        public void Divide_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Divide(1, 2);

            Assert.AreEqual(0.5, result);
        }
コード例 #3
0
        public void Multiply_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Multiply(1, 2);

            Assert.AreEqual(2, result);
        }
コード例 #4
0
        public void Add_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Add(1, 2);

            Assert.AreEqual(3, result);
        }
コード例 #5
0
        public void Divide_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Divide(1, 2);

            Assert.AreEqual(0.5, result);
        }
コード例 #6
0
        public void Multiply_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Multiply(1, 2);

            Assert.AreEqual(2, result);
        }
コード例 #7
0
        public void Subtract_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Subtract(1, 2);

            Assert.AreEqual(-1, result);
        }
コード例 #8
0
        public void Add_TwoNumbers_ReturnValue()
        {
            var arithmeticsOperators = new ArithmeticsOperators();

            var result = arithmeticsOperators.Add(1, 2);

            Assert.AreEqual(3, result);
        }