Exemplo n.º 1
0
 public InputOperationFactory()
 {
     _operationMap["add"] = new OperationSum();
     _operationMap["sub"] = new OperationDifference();
     _operationMap["mul"] = new OperationMultiply();
     _operationMap["div"] = new OperationDivide();
     _operationMap["pow"] = new OperationPower();
 }
        public void OperationMultiplyReturnCorrectResult()
        {
            OperationMultiply mult = new OperationMultiply();

            Assert.AreEqual(18, mult.GetResult(2, 9));
        }