private static void Output(HtmlStyleValueExpression expression) { if (expression != null) { Console.WriteLine("{0}: {1}", expression.Expression, expression.Value); } }
public void SimpleExpressionTest() { string styleValue = "expression(26 * 7)"; HtmlStyleValueExpression expression = HtmlStyleParser.ParseValue(styleValue); Output(expression); }
public void DoubleParenthesesExpressionTest() { string styleValue = "expression((26 + 7) * 9)"; HtmlStyleValueExpression expression = HtmlStyleParser.ParseValue(styleValue); Output(expression); }
private static void Output(HtmlStyleValueExpression expression) { if (expression != null) Console.WriteLine("{0}: {1}", expression.Expression, expression.Value); }