internal static string GetTestString(Expression<Func<bool>> expr) { var parser = new Parser(); return parser.PrettyString(expr); }
private void TestExpressionParsing(Expression<Func<bool>> expr, string expected) { Parser parser = new Parser(); string result = parser.PrettyString(expr); Assert.AreEqual(expected, result); }
public void CorrectStringFor_ConstantExpression() { Parser parser = new Parser(); string result = parser.PrettyString(() => true); Assert.AreEqual("true", result); }
public void ProducesNonNullString() { Parser parser = new Parser(); string result = parser.PrettyString(() => true); Assert.NotNull(result); }