public void GetResolvedOptionalElementSelector() { var resolvedElementSelector = _nodeWithElementSelector.GetResolvedOptionalElementSelector(ClauseGenerationContext); var expectedExpression = ExpressionHelper.Resolve <int, string> (SourceClause, i => i.ToString()); ExpressionTreeComparer.CheckAreEqualTrees(expectedExpression, resolvedElementSelector); }
public void GetResolvedOptionalElementSelector_Null() { var resolvedElementSelector = _nodeWithoutElementSelector.GetResolvedOptionalElementSelector(ClauseGenerationContext); Assert.That(resolvedElementSelector, Is.Null); }