@@ -50,6 +50,8 @@ public void Given_Type_When_IsNavigatable_Invoked_Then_It_Should_Return_Result(T
50
50
[ DataRow ( typeof ( IEnumerable < string > ) , true ) ]
51
51
[ DataRow ( typeof ( IReadOnlyList < string > ) , true ) ]
52
52
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , true ) ]
53
+ [ DataRow ( typeof ( HashSet < string > ) , true ) ]
54
+ [ DataRow ( typeof ( ISet < string > ) , true ) ]
53
55
[ DataRow ( typeof ( int ) , false ) ]
54
56
public void Given_Type_When_IsVisitable_Invoked_Then_It_Should_Return_Result ( Type type , bool expected )
55
57
{
@@ -65,6 +67,8 @@ public void Given_Type_When_IsVisitable_Invoked_Then_It_Should_Return_Result(Typ
65
67
[ DataRow ( typeof ( IEnumerable < string > ) , true ) ]
66
68
[ DataRow ( typeof ( IReadOnlyList < string > ) , true ) ]
67
69
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , true ) ]
70
+ [ DataRow ( typeof ( HashSet < string > ) , true ) ]
71
+ [ DataRow ( typeof ( ISet < string > ) , true ) ]
68
72
[ DataRow ( typeof ( int ) , false ) ]
69
73
public void Given_Type_When_IsParameterVisitable_Invoked_Then_It_Should_Return_Result ( Type type , bool expected )
70
74
{
@@ -80,6 +84,8 @@ public void Given_Type_When_IsParameterVisitable_Invoked_Then_It_Should_Return_R
80
84
[ DataRow ( typeof ( IEnumerable < string > ) , true ) ]
81
85
[ DataRow ( typeof ( IReadOnlyList < string > ) , true ) ]
82
86
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , true ) ]
87
+ [ DataRow ( typeof ( HashSet < string > ) , true ) ]
88
+ [ DataRow ( typeof ( ISet < string > ) , true ) ]
83
89
[ DataRow ( typeof ( int ) , false ) ]
84
90
public void Given_Type_When_IsPayloadVisitable_Invoked_Then_It_Should_Return_Result ( Type type , bool expected )
85
91
{
@@ -95,12 +101,16 @@ public void Given_Type_When_IsPayloadVisitable_Invoked_Then_It_Should_Return_Res
95
101
[ DataRow ( typeof ( IEnumerable < string > ) , "array" , null , "string" , false , "string" , 0 ) ]
96
102
[ DataRow ( typeof ( IReadOnlyList < string > ) , "array" , null , "string" , false , "string" , 0 ) ]
97
103
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , "array" , null , "string" , false , "string" , 0 ) ]
104
+ [ DataRow ( typeof ( HashSet < string > ) , "array" , null , "string" , false , "string" , 0 ) ]
105
+ [ DataRow ( typeof ( ISet < string > ) , "array" , null , "string" , false , "string" , 0 ) ]
98
106
[ DataRow ( typeof ( List < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
99
107
[ DataRow ( typeof ( IList < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
100
108
[ DataRow ( typeof ( ICollection < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
101
109
[ DataRow ( typeof ( IEnumerable < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
102
110
[ DataRow ( typeof ( IReadOnlyList < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
103
111
[ DataRow ( typeof ( IReadOnlyCollection < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
112
+ [ DataRow ( typeof ( HashSet < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
113
+ [ DataRow ( typeof ( ISet < FakeModel > ) , "array" , null , "object" , true , "fakeModel" , 1 ) ]
104
114
public void Given_Type_When_Visit_Invoked_Then_It_Should_Return_Result ( Type listType , string dataType , string dataFormat , string itemType , bool isReferential , string referenceId , int expected )
105
115
{
106
116
var name = "hello" ;
@@ -132,12 +142,16 @@ public void Given_Type_When_Visit_Invoked_Then_It_Should_Return_Result(Type list
132
142
[ DataRow ( typeof ( IEnumerable < string > ) , 1 ) ]
133
143
[ DataRow ( typeof ( IReadOnlyList < string > ) , 1 ) ]
134
144
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , 1 ) ]
145
+ [ DataRow ( typeof ( HashSet < string > ) , 1 ) ]
146
+ [ DataRow ( typeof ( ISet < string > ) , 1 ) ]
135
147
[ DataRow ( typeof ( List < FakeModel > ) , 1 ) ]
136
148
[ DataRow ( typeof ( IList < FakeModel > ) , 1 ) ]
137
149
[ DataRow ( typeof ( ICollection < FakeModel > ) , 1 ) ]
138
150
[ DataRow ( typeof ( IEnumerable < FakeModel > ) , 1 ) ]
139
151
[ DataRow ( typeof ( IReadOnlyList < FakeModel > ) , 1 ) ]
140
152
[ DataRow ( typeof ( IReadOnlyCollection < FakeModel > ) , 1 ) ]
153
+ [ DataRow ( typeof ( HashSet < FakeModel > ) , 1 ) ]
154
+ [ DataRow ( typeof ( ISet < FakeModel > ) , 1 ) ]
141
155
public void Given_MinLengthAttribute_When_Visit_Invoked_Then_It_Should_Return_Result ( Type listType , int length )
142
156
{
143
157
var name = "hello" ;
@@ -159,12 +173,16 @@ public void Given_MinLengthAttribute_When_Visit_Invoked_Then_It_Should_Return_Re
159
173
[ DataRow ( typeof ( IEnumerable < string > ) , 10 ) ]
160
174
[ DataRow ( typeof ( IReadOnlyList < string > ) , 10 ) ]
161
175
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , 10 ) ]
176
+ [ DataRow ( typeof ( HashSet < string > ) , 10 ) ]
177
+ [ DataRow ( typeof ( ISet < string > ) , 10 ) ]
162
178
[ DataRow ( typeof ( List < FakeModel > ) , 10 ) ]
163
179
[ DataRow ( typeof ( IList < FakeModel > ) , 10 ) ]
164
180
[ DataRow ( typeof ( ICollection < FakeModel > ) , 10 ) ]
165
181
[ DataRow ( typeof ( IEnumerable < FakeModel > ) , 10 ) ]
166
182
[ DataRow ( typeof ( IReadOnlyList < FakeModel > ) , 10 ) ]
167
183
[ DataRow ( typeof ( IReadOnlyCollection < FakeModel > ) , 10 ) ]
184
+ [ DataRow ( typeof ( HashSet < FakeModel > ) , 10 ) ]
185
+ [ DataRow ( typeof ( ISet < FakeModel > ) , 10 ) ]
168
186
public void Given_MaxLengthAttribute_When_Visit_Invoked_Then_It_Should_Return_Result ( Type listType , int length )
169
187
{
170
188
var name = "hello" ;
@@ -218,12 +236,16 @@ public void Given_OpenApiSchemaVisibilityAttribute_When_Visit_Invoked_Then_It_Sh
218
236
[ DataRow ( typeof ( IEnumerable < string > ) , "array" , null , "string" , false ) ]
219
237
[ DataRow ( typeof ( IReadOnlyList < string > ) , "array" , null , "string" , false ) ]
220
238
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , "array" , null , "string" , false ) ]
239
+ [ DataRow ( typeof ( HashSet < string > ) , "array" , null , "string" , false ) ]
240
+ [ DataRow ( typeof ( ISet < string > ) , "array" , null , "string" , false ) ]
221
241
[ DataRow ( typeof ( List < FakeModel > ) , "array" , null , "object" , true ) ]
222
242
[ DataRow ( typeof ( IList < FakeModel > ) , "array" , null , "object" , true ) ]
223
243
[ DataRow ( typeof ( ICollection < FakeModel > ) , "array" , null , "object" , true ) ]
224
244
[ DataRow ( typeof ( IEnumerable < FakeModel > ) , "array" , null , "object" , true ) ]
225
245
[ DataRow ( typeof ( IReadOnlyList < FakeModel > ) , "array" , null , "object" , true ) ]
226
246
[ DataRow ( typeof ( IReadOnlyCollection < FakeModel > ) , "array" , null , "object" , true ) ]
247
+ [ DataRow ( typeof ( HashSet < FakeModel > ) , "array" , null , "object" , true ) ]
248
+ [ DataRow ( typeof ( ISet < FakeModel > ) , "array" , null , "object" , true ) ]
227
249
public void Given_Type_When_ParameterVisit_Invoked_Then_It_Should_Return_Result ( Type listType , string dataType , string dataFormat , string itemType , bool isItemToBeNull )
228
250
{
229
251
var result = this . _visitor . ParameterVisit ( listType , this . _strategy ) ;
@@ -245,12 +267,16 @@ public void Given_Type_When_ParameterVisit_Invoked_Then_It_Should_Return_Result(
245
267
[ DataRow ( typeof ( IEnumerable < string > ) , "array" , null , "string" , false , null ) ]
246
268
[ DataRow ( typeof ( IReadOnlyList < string > ) , "array" , null , "string" , false , null ) ]
247
269
[ DataRow ( typeof ( IReadOnlyCollection < string > ) , "array" , null , "string" , false , null ) ]
270
+ [ DataRow ( typeof ( HashSet < string > ) , "array" , null , "string" , false , null ) ]
271
+ [ DataRow ( typeof ( ISet < string > ) , "array" , null , "string" , false , null ) ]
248
272
[ DataRow ( typeof ( List < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
249
273
[ DataRow ( typeof ( IList < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
250
274
[ DataRow ( typeof ( ICollection < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
251
275
[ DataRow ( typeof ( IEnumerable < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
252
276
[ DataRow ( typeof ( IReadOnlyList < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
253
277
[ DataRow ( typeof ( IReadOnlyCollection < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
278
+ [ DataRow ( typeof ( HashSet < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
279
+ [ DataRow ( typeof ( ISet < FakeModel > ) , "array" , null , "object" , true , "fakeModel" ) ]
254
280
public void Given_Type_When_PayloadVisit_Invoked_Then_It_Should_Return_Result ( Type listType , string dataType , string dataFormat , string itemType , bool reference , string referenceId )
255
281
{
256
282
var result = this . _visitor . PayloadVisit ( listType , this . _strategy ) ;
0 commit comments