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); }