public void CalcFunctions_Add_Two_Double_Numbers() { double a = 2.393, b = 4.9393; double result = (double)CalcFunctions.Add(a, b); Assert.AreEqual(result, a + b); }
public void CalcFunctions_Add_Int_And_Double_Numbers() { double a = 32.32232; int b = 5; double result = (double)CalcFunctions.Add(a, b); Assert.AreEqual(result, a + b); }
public void Check_For_Integer_Overflow_Add() { int a = Int32.MaxValue; int b = 1; object result = CalcFunctions.Add(a, b); Assert.AreEqual(result.ToString(), "OVERFLOW"); }
public void CalcFunctions_add_Two_Numbers() { //Arrange int a = 1, b = 2; //Act int result = (int)CalcFunctions.Add(a, b); //Assert Assert.AreEqual(result, a + b); }