public void WhereExpression_ToString_ContainsCombinator(WhereCombinator whereCombinator, string expected) { var whereExpr = new WhereExpression<TestClass>(t => t.IntNullable, whereCombinator, 4); Assert.Contains(expected, whereExpr.ToString()); }
public void StringQueryParser_GivenWhereExpression_Parse_ReturnsCorrectCombinatorProperty(WhereCombinator combinator, string combString) { var exprs = new StringQueryParser<TestClass>("intprop-" + combString + "-4").Parse(); Assert.Equal(combinator, (exprs.Single() as WhereExpression<TestClass>).Combinator); }