public void TestRecursiveDivide()
 {
     Assert.Equal(5, RecursiveMath.RecursiveDivide(20, 4));
     Assert.Equal(-4, RecursiveMath.RecursiveDivide(12, -3));
     Assert.Equal(0, RecursiveMath.RecursiveDivide(20, 0));
     Assert.Equal(0, RecursiveMath.RecursiveDivide(0, 20));
 }
 public void TestRecursiveDivide(int dividend, int divisor, int expected)
 {
     Assert.Equal(expected, RecursiveMath.RecursiveDivide(dividend, divisor));
 }
 public void TestRecursiveMultiply()
 {
     Assert.Equal(20, RecursiveMath.RecursiveMultiply(4, 5));
     Assert.Equal(-10, RecursiveMath.RecursiveMultiply(2, -5));
     Assert.Equal(0, RecursiveMath.RecursiveMultiply(10, 0));
 }
 public void TestRecursiveMultiply(int val1, int val2, int expected)
 {
     Assert.Equal(expected, RecursiveMath.RecursiveMultiply(val1, val2));
 }
 public void TestRecursiveSubtract(int val1, int val2, int expected)
 {
     Assert.Equal(expected, RecursiveMath.RecursiveSubtract(val1, val2));
 }
 public void TestRecursiveSubtract()
 {
     Assert.Equal(-1, RecursiveMath.RecursiveSubtract(2, 3));
     Assert.Equal(-3, RecursiveMath.RecursiveSubtract(0, 3));
     Assert.Equal(5, RecursiveMath.RecursiveSubtract(10, 5));
 }
 public void TestRecursiveExponent(int num, int exponent, int expected)
 {
     Assert.Equal(expected, RecursiveMath.RecursiveExponent(num, exponent));
 }
 public void TestRecursiveAdd()
 {
     Assert.Equal(5, RecursiveMath.RecursiveAdd(2, 3));
     Assert.Equal(3, RecursiveMath.RecursiveAdd(0, 3));
     Assert.Equal(-10, RecursiveMath.RecursiveAdd(-20, 10));
 }
 public void TestRecursiveExponent()
 {
     Assert.Equal(1, RecursiveMath.RecursiveExponent(5, 0));
     Assert.Equal(5, RecursiveMath.RecursiveExponent(5, 1));
     Assert.Equal(16, RecursiveMath.RecursiveExponent(2, 4));
 }