コード例 #1
0
 public void WhereExpression_ToString_ContainsCombinator(WhereCombinator whereCombinator, string expected)
 {
     var whereExpr = new WhereExpression<TestClass>(t => t.IntNullable, whereCombinator, 4);
     Assert.Contains(expected, whereExpr.ToString());
 }
コード例 #2
0
 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);
 }