public void CalculatorTest_Check_If_EmptyString_Return_Zerro() { //Arrange var calc = new Calculator(); var expected = 0; //Act var actual = calc.Add(""); //Actual Assert.AreEqual(expected, actual); }
public void CalculatorTest_CheckIfOneParameterReturnsTheParameterValue() { //Arrange var calc = new Calculator(); var expected = 167; //Act var actual = calc.Add("167"); //Actual Assert.AreEqual(expected, actual); }
public void Check_Add_Without_Parameters() { Calculator calc = new Calculator(); var actual = calc.Add(); Assert.AreEqual(actual, 0); }