Example #1
0
 public void ToThePowerOfTest()
 {
     Assert.AreEqual(MyMath.ToThePowerOf(2, 5), 32);
 }
Example #2
0
 public void DivideTestWithZero()
 {
     Assert.AreEqual(MyMath.Divide(10, 0), 0);
 }
Example #3
0
 public void DivideTest()
 {
     Assert.IsTrue(MyMath.Divide(10, 5).Equals(2));
 }
Example #4
0
 public void MultiplyTest()
 {
     Assert.IsTrue(MyMath.Multiply(10, 10).Equals(100));
 }
Example #5
0
 public void SubtractTest()
 {
     Assert.IsTrue(MyMath.Subtract(10, 5).Equals(5));
 }
Example #6
0
 public void AddTest2()
 {
     Assert.AreEqual(MyMath.Add(-5, -5), -10);
 }