public void GetAddition_Input16and30_Return46() { //Arrange double Value1 = 16; double Value2 = 30; double expectedResult = Value1 + Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetAddition(); //Assert Assert.AreEqual(expectedResult, actualResult); }
public void GetAddition_Input15point4and23point3_Return38point7() { //Arrange double Value1 = 15.4; double Value2 = 23.3; double expectedResult = Value1 + Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetAddition(); //Assert Assert.AreEqual(expectedResult, actualResult); }
public void GetAddition_Input225and425_Return650() { //Arrange double Value1 = 225; double Value2 = 425; double expectedResult = Value1 + Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetAddition(); //Assert Assert.AreEqual(expectedResult, actualResult); }