-
-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Labels
Description
Note: this is a new topic to the issue #952
In my opinion their are still two unresolved edge cases.
The first edge case is when any property is null in the source object like that:
private JsonDocument _jsonDoc = JsonDocument.Parse
(
"""
[
{
"a": "1",
"b": 2,
"c": true,
"d": null
},
{
"a": "12",
"b": 22,
"c": true,
"d": null
}
]
"""
);Then any query of the test in your tests is then red:
The second broken case is if you compare some number to a not exisiting member to be bigger then the not existing member, then it will return true.
So something like that:
_source.Any(config, $"x => x.notExisting < 1"); // The result will be a not empty list