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