Exemple #1
0
        public void should_return_a_valid_alias()
        {
            var formulaParser = new ExplicitFormulaParser(new[] { _alias }, new string[0]);

            formulaParser.FormulaString = _alias;
            formulaParser.Parse();
        }
 protected override void Context()
 {
     _parsedFunction = new ParsedFunction();
     _variableNames  = new List <string> {
         _var1, _var2
     };
     _parameterNames = new List <string> {
         _par1, _par2
     };
     _variableValues  = new[] { 1.0, 2.0 };
     _parameterValues = new[] { 3.0, 4.0 };
     sut = new ExplicitFormulaParser(_variableNames, _parameterNames, _parsedFunction);
 }