Exemplo n.º 1
0
        private dynamic Eval(Match m)
        {
            var expression = m.Groups["expression"].Value;

            return(formulaSolver.Solve <dynamic>(expression, null));
        }
Exemplo n.º 2
0
        public void SolveFormula_EvaluatesMath(string formula, decimal expectedResult)
        {
            var actualResult = _formulaSolver.Solve <decimal>(formula);

            Assert.Equal(expectedResult, actualResult);
        }