public void InEmptyList() { ISession session = factory.OpenSession(); InExpression expression = new InExpression("Count", new object[0]); CreateObjects(typeof(Simple), session); SqlString sql = expression.ToSqlString(criteria, criteriaQuery, new CollectionHelper.EmptyMapClass <string, IFilter>()); Assert.AreEqual("1=0", sql.ToString()); session.Close(); }
public void InEmptyList() { ISession session = factory.OpenSession(); InExpression expression = new InExpression("Count", Array.Empty <object>()); CreateObjects(typeof(Simple), session); SqlString sql = expression.ToSqlString(criteria, criteriaQuery); Assert.AreEqual("1=0", sql.ToString()); session.Close(); }