示例#1
0
        public void GetResolvedOptionalElementSelector()
        {
            var resolvedElementSelector = _nodeWithElementSelector.GetResolvedOptionalElementSelector(ClauseGenerationContext);

            var expectedExpression = ExpressionHelper.Resolve <int, string> (SourceClause, i => i.ToString());

            ExpressionTreeComparer.CheckAreEqualTrees(expectedExpression, resolvedElementSelector);
        }
示例#2
0
        public void GetResolvedOptionalElementSelector_Null()
        {
            var resolvedElementSelector = _nodeWithoutElementSelector.GetResolvedOptionalElementSelector(ClauseGenerationContext);

            Assert.That(resolvedElementSelector, Is.Null);
        }