public void Check_For_Divide_by_0() { int a = 1, b = 0; object result = CalcFunctions.Divide(a, b); Assert.AreEqual(result.ToString(), "DIV BY 0"); }
public void CalcFunctions_Divide_Two_Double_Numbers() { double a = 2.393, b = 4.9393; double result = (double)CalcFunctions.Divide(a, b); Assert.AreEqual(result, a / b); }
public void CalcFunctions_Divide_Int_Double_Numbers() { double a = 9.32314; int b = 3; double result = (double)CalcFunctions.Divide(a, b); Assert.AreEqual(result, a / b); }