public void TestNotEqaul() { var entities1 = this.database.CreateSimilarEntities(3, "Name 1"); var entities2 = this.database.CreateSimilarEntities(3, "Name 2"); var entities = entities1.Concat(entities2).ToList(); this.database.CreateSimilarEntities(3, "Name 3"); var builder = new FilterExpressionBuilder <Entity, string>(nameof(Entity.Name), "Name 3"); var expression = builder.CreateNotEqualExpression(); using (var context = this.database.Create()) { var result = context.Entities .Where(expression) .ToList(); Assert.Equal(entities, result, new PropertyComparer <Entity>()); } }