Skip to content

Commit 46a8dd5

Browse files
author
rstam
committed
Fixed warnings and fixed unit test that was being skipped.
1 parent ed8de1e commit 46a8dd5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Driver/Linq/Translators/PartialEvaluator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static Expression Evaluate(Expression expression)
4040
/// Performs evaluation and replacement of independent sub-trees.
4141
/// </summary>
4242
/// <param name="expression">The root of the expression tree.</param>
43-
/// <param name="fnCanBeEvaluated">A function that decides whether a given expression node can be part of the local function.</param>
43+
/// <param name="queryProvider">The query provider when the expression is a LINQ query (can be null).</param>
4444
/// <returns>A new tree with sub-trees evaluated and replaced.</returns>
4545
public static Expression Evaluate(Expression expression, IQueryProvider queryProvider)
4646
{

DriverUnitTests/Builders/TypedQueryBuilderTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,9 @@ public void TestMatchesExpressionRegex()
368368
}
369369

370370
[Test]
371-
[Ignore("Not Implemented")]
372371
public void TestMatchesExpressionRegexVariable()
373372
{
374-
var regex = new Regex("abc");
373+
var regex = new Regex("abc", RegexOptions.Singleline);
375374
var query = Query.Where<A>(a => regex.IsMatch(a.S));
376375
var expected = "{ \"s\" : /abc/s }";
377376
Assert.AreEqual(expected, query.ToJson());

0 commit comments

Comments
 (0)