tspence / csharp-searchlight

A lightweight, secure framework for a fluent REST API with robust, secure searching features.
Apache License 2.0
11 stars 7 forks source link

Add more tests for "NOT" in the Linq executor #105

Closed tspence closed 2 years ago

tspence commented 2 years ago

As reported by @AlexRussak in #96 , we don't have enough unit tests for negation, e.g. the "NOT" keyword.

Since pretty much everything can be negated, let's add tests for these things throughout the code. We'll add tests for each different type of clause:

Looks like we also needed some explicit tests for string "not" operators, like a not contains 'test' or name not startswith Z