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