public void TestStartsWith() { 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), "Name"); var expression = builder.CreateStartsWithExpression(); using (var context = this.database.Create()) { var result = context.Entities .Where(expression) .ToList(); Assert.Equal(entities, result, new PropertyComparer <Entity>()); } }