示例#1
0
        public void SubtractTwoIntegers()
        {
            int difference = _calculator.Subtract(50, 30);

            Assert.Equal(difference, 20);
        }
示例#2
0
        public void Subtract2Numbers()
        {
            int result = Calculator.Subtract(10, 5);

            Assert.AreEqual(5, result);
        }
        public void TestSubtract(int a0, int a1, int expected)
        {
            int result = Calculator.Subtract(a0, a1);

            Assert.Equal(expected, result);
        }
示例#4
0
        public void Subtract()
        {
            double difference = _calculator.Subtract(54, 29);

            Assert.Equal(difference, 25.00);
        }