@@ -67,6 +67,7 @@ public void Reader_Is_Enabled(JsonApiQueryStringParameters parametersDisabled, b
67
67
[ InlineData ( "filter[posts]" , "equals(author,'some')" , "Attribute 'author' does not exist on resource 'blogPosts'." ) ]
68
68
[ InlineData ( "filter[posts]" , "lessThan(author,null)" , "Attribute 'author' does not exist on resource 'blogPosts'." ) ]
69
69
[ InlineData ( "filter" , " " , "Unexpected whitespace." ) ]
70
+ [ InlineData ( "filter" , "contains(owner.displayName, )" , "Unexpected whitespace." ) ]
70
71
[ InlineData ( "filter" , "some" , "Filter function expected." ) ]
71
72
[ InlineData ( "filter" , "equals" , "( expected." ) ]
72
73
[ InlineData ( "filter" , "equals'" , "Unexpected ' outside text." ) ]
@@ -115,6 +116,9 @@ public void Reader_Read_Fails(string parameterName, string parameterValue, strin
115
116
[ InlineData ( "filter" , "equals(title,'Brian O''Quote')" , null , "equals(title,'Brian O''Quote')" ) ]
116
117
[ InlineData ( "filter" , "equals(title,'!@#$%^&*()-_=+\" ''[]{}<>()/|\\ :;.,`~')" , null , "equals(title,'!@#$%^&*()-_=+\" ''[]{}<>()/|\\ :;.,`~')" ) ]
117
118
[ InlineData ( "filter" , "equals(title,'')" , null , "equals(title,'')" ) ]
119
+ [ InlineData ( "filter" , "startsWith(owner.displayName,'GivenName ')" , null , "startsWith(owner.displayName,'GivenName ')" ) ]
120
+ [ InlineData ( "filter" , "endsWith(owner.displayName,' Surname')" , null , "endsWith(owner.displayName,' Surname')" ) ]
121
+ [ InlineData ( "filter" , "contains(owner.displayName,' ')" , null , "contains(owner.displayName,' ')" ) ]
118
122
[ InlineData ( "filter[posts]" , "equals(caption,'this, that & more')" , "posts" , "equals(caption,'this, that & more')" ) ]
119
123
[ InlineData ( "filter[owner.posts]" , "equals(caption,'some')" , "owner.posts" , "equals(caption,'some')" ) ]
120
124
[ InlineData ( "filter[posts.comments]" , "equals(createdAt,'2000-01-01')" , "posts.comments" , "equals(createdAt,'2000-01-01')" ) ]
0 commit comments