public static void VisitDbInExpression_throws_not_implemented_exception() { var constant = DbExpressionBuilder.Constant(3); var list = new List<DbConstantExpression>() { DbExpressionBuilder.Constant(0), DbExpressionBuilder.Constant(1), DbExpressionBuilder.Constant(2), }; var expression = constant.In(list) as DbInExpression; var visitor1 = new DummyDbExpressionVisitor(); Assert.Throws<NotImplementedException>(() => visitor1.Visit(expression)); var visitor2 = new DummyDbExpressionVisitor<string>(); Assert.Throws<NotImplementedException>(() => visitor2.Visit(expression)); }
public static void VisitDbInExpression_throws_not_implemented_exception() { var constant = DbExpressionBuilder.Constant(3); var list = new List <DbConstantExpression>() { DbExpressionBuilder.Constant(0), DbExpressionBuilder.Constant(1), DbExpressionBuilder.Constant(2), }; var expression = constant.In(list) as DbInExpression; var visitor1 = new DummyDbExpressionVisitor(); Assert.Throws <NotImplementedException>(() => visitor1.Visit(expression)); var visitor2 = new DummyDbExpressionVisitor <string>(); Assert.Throws <NotImplementedException>(() => visitor2.Visit(expression)); }