public void VarietyOfCalculations()
 {
     Assert.AreEqual(0M, decimal.Parse(MathFunctionObj.Modulus("5", "5")));
     Assert.AreEqual(1M, decimal.Parse(MathFunctionObj.Modulus("9", "2")));
     Assert.AreEqual(2.1M, decimal.Parse(MathFunctionObj.Modulus("25.1", "23")));
     Assert.AreEqual(-15.6M, decimal.Parse(MathFunctionObj.Modulus("-178.2", "27.1")));
 }
 public void BadInput()
 {
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus("text", "10"));
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus("10", "text"));
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus("", ""));
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus(null, ""));
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus("", null));
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus(null, null));
 }
 public void ZeroRaisedtoZeroPower()
 {
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus("0", "0"));
 }
 public void DivideByZero()
 {
     Assert.AreEqual(Project1.Functions.MathFunctions.ErrorMessage, MathFunctionObj.Modulus("1.0", "0"));
 }