public void Apply_NoDefaultAllowed () { var node = new LastExpressionNode (CreateParseInfo (LastExpressionNode.SupportedMethods[0].MakeGenericMethod (typeof (Cook))), null); node.Apply (QueryModel, ClauseGenerationContext); Assert.That (((LastResultOperator) QueryModel.ResultOperators[0]).ReturnDefaultWhenEmpty, Is.False); }
public void Apply_NoDefaultAllowed () { var node = new LastExpressionNode (CreateParseInfo (ReflectionUtility.GetMethod (() => Queryable.Last<Cook> (null))), null); node.Apply (QueryModel, ClauseGenerationContext); Assert.That (((LastResultOperator) QueryModel.ResultOperators[0]).ReturnDefaultWhenEmpty, Is.False); }