コード例 #1
0
        public void DoSubtractTest(int a, int b)
        {
            int expected         = a - b;
            int calculatedResult = SomeCalculations.DoSubtract(a, b);

            Assert.Equal(expected, calculatedResult);
        }
コード例 #2
0
        public void DoModByZeroTest(int a, int b)
        {
            int expected         = 0;
            int calculatedResult = SomeCalculations.DoMod(a, b);

            Assert.Equal(expected, calculatedResult);
        }
コード例 #3
0
        public void DoAddTest(int a, int b)
        {
            int expected         = a + b;
            int calculatedResult = SomeCalculations.DoAdd(a, b);

            Assert.Equal(expected, calculatedResult);
        }