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 GetSubtraction_Input24point8and12point4_Return12point4() { //Arrange double Value1 = 24.8; double Value2 = 12.4; double expectedResult = Value1 - Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetSubtraction(); //Assert Assert.AreEqual(expectedResult, actualResult); }
public void GetSubtraction_Input68and22_Return46() { //Arrange double Value1 = 68; double Value2 = 22; double expectedResult = Value1 - Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetSubtraction(); //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); }
public void GetDivision_Input9and3_Return3() { //Arrange double Value1 = 9; double Value2 = 3; double expectedResult = Value1 / Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetDivision(); //Assert Assert.AreEqual(expectedResult, actualResult); }
public void GetDivision_Input26point8and2_Return13point4() { //Arrange double Value1 = 26.8; double Value2 = 2; double expectedResult = Value1 / Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetDivision(); //Assert Assert.AreEqual(expectedResult, actualResult); }
public void GetMultiplication_Input40and250_Return10000() { //Arrange double Value1 = 40; double Value2 = 250; double expectedResult = Value1 * Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetMultiplication(); //Assert Assert.AreEqual(expectedResult, actualResult); }
public void GetMultiplication_Input4point4and2_Return8point8() { //Arrange double Value1 = 4.4; double Value2 = 2; double expectedResult = Value1 * Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetMultiplication(); //Assert Assert.AreEqual(expectedResult, actualResult); }
public void GetMultiplication_Input24and4_Return96() { //Arrange double Value1 = 24; double Value2 = 4; double expectedResult = Value1 * Value2; CCalc testCCalc = new CCalc(Value1, Value2); //Act double actualResult = testCCalc.GetMultiplication(); //Assert Assert.AreEqual(expectedResult, actualResult); }