public void getMultiplicationSign() { //arrange var x = new PerformArithmetic(); var y = new PerformFileOperations(); //act y.typeOfArithmetic = "multiply"; x.getOperand(y); //assert Assert.AreEqual(x.operand, "*"); }
public void getDivisionSign() { //arrange var x = new PerformArithmetic(); var y = new PerformFileOperations(); //act y.typeOfArithmetic = "divide"; x.getOperand(y); //assert Assert.AreEqual(x.operand, "/"); }
public void getMinusSign() { //arrange var x = new PerformArithmetic(); var y = new PerformFileOperations(); //act y.typeOfArithmetic = "subtract"; x.getOperand(y); //assert Assert.AreEqual(x.operand, "-"); }