Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions QueryKit.UnitTests/FilterParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -817,12 +817,12 @@ public void primitive_collection_does_not_have_case_insensitive()
}

[Fact]
public void has_type_on_non_collection_property_throws_the_v1_14_2_message()
public void has_type_throws_correct_message_on_non_collection_property()
{
var input = """Title ^$ "winner" """;
var act = () => FilterParser.ParseFilter<Recipe>(input);
act.Should().Throw<QueryKitParsingException>()
.WithMessage("DoesNotHaveType is only supported for collections");
.WithMessage("HasType is only supported for collections");
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion QueryKit/Operators/ComparisonOperator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public override Expression GetExpression<T>(Expression left, Expression right, T
return GetCollectionExpression(left, right, Expression.Equal, UsesAll);
}

throw new QueryKitParsingException("DoesNotHaveType is only supported for collections");
throw new QueryKitParsingException("HasType is only supported for collections");
}
}

Expand Down
Loading