Binding\FormDataMetadataFactoryTests.cs (164)
27Assert.NotNull(property.PropertyMetadata);
28Assert.Equal(typeof(int), property.PropertyMetadata.Type);
29Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
30Assert.Null(property.PropertyMetadata.Constructor);
31Assert.Empty(property.PropertyMetadata.Properties);
36Assert.NotNull(property.PropertyMetadata);
37Assert.Equal(typeof(string), property.PropertyMetadata.Type);
38Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
39Assert.Null(property.PropertyMetadata.Constructor);
40Assert.Empty(property.PropertyMetadata.Properties);
62Assert.NotNull(property.PropertyMetadata);
63Assert.Equal(typeof(Address), property.PropertyMetadata.Type);
64Assert.Equal(FormDataTypeKind.Object, property.PropertyMetadata.Kind);
65Assert.Null(property.PropertyMetadata.Constructor);
66Assert.False(property.PropertyMetadata.IsRecursive);
67Assert.Collection(property.PropertyMetadata.Properties,
71Assert.NotNull(property.PropertyMetadata);
72Assert.Equal(typeof(string), property.PropertyMetadata.Type);
73Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
74Assert.Null(property.PropertyMetadata.Constructor);
75Assert.Empty(property.PropertyMetadata.Properties);
80Assert.NotNull(property.PropertyMetadata);
81Assert.Equal(typeof(string), property.PropertyMetadata.Type);
82Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
83Assert.Null(property.PropertyMetadata.Constructor);
84Assert.Empty(property.PropertyMetadata.Properties);
90Assert.NotNull(property.PropertyMetadata);
91Assert.Equal(typeof(Address), property.PropertyMetadata.Type);
92Assert.Equal(FormDataTypeKind.Object, property.PropertyMetadata.Kind);
93Assert.Null(property.PropertyMetadata.Constructor);
94Assert.False(property.PropertyMetadata.IsRecursive);
95Assert.Collection(property.PropertyMetadata.Properties,
99Assert.NotNull(property.PropertyMetadata);
100Assert.Equal(typeof(string), property.PropertyMetadata.Type);
101Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
102Assert.Null(property.PropertyMetadata.Constructor);
103Assert.Empty(property.PropertyMetadata.Properties);
108Assert.NotNull(property.PropertyMetadata);
109Assert.Equal(typeof(string), property.PropertyMetadata.Type);
110Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
111Assert.Null(property.PropertyMetadata.Constructor);
112Assert.Empty(property.PropertyMetadata.Properties);
134Assert.NotNull(property.PropertyMetadata);
135Assert.Equal(typeof(string), property.PropertyMetadata.Type);
136Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
137Assert.Null(property.PropertyMetadata.Constructor);
138Assert.Empty(property.PropertyMetadata.Properties);
143Assert.NotNull(property.PropertyMetadata);
144Assert.Equal(typeof(string), property.PropertyMetadata.Type);
145Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
146Assert.Null(property.PropertyMetadata.Constructor);
147Assert.Empty(property.PropertyMetadata.Properties);
202Assert.NotNull(property.PropertyMetadata);
203Assert.Equal(typeof(int), property.PropertyMetadata.Type);
204Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
205Assert.Null(property.PropertyMetadata.Constructor);
206Assert.Empty(property.PropertyMetadata.Properties);
211Assert.NotNull(property.PropertyMetadata);
212Assert.Equal(typeof(string), property.PropertyMetadata.Type);
213Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
214Assert.Null(property.PropertyMetadata.Constructor);
215Assert.Empty(property.PropertyMetadata.Properties);
220Assert.NotNull(property.PropertyMetadata);
221Assert.Equal(typeof(List<CustomerWithOrders.Order>), property.PropertyMetadata.Type);
222Assert.Equal(FormDataTypeKind.Collection, property.PropertyMetadata.Kind);
223Assert.NotNull(property.PropertyMetadata.ElementType);
224Assert.Null(property.PropertyMetadata.Constructor);
226property.PropertyMetadata.ElementType.Properties,
230Assert.NotNull(subProperty.PropertyMetadata);
231Assert.Equal(typeof(int), subProperty.PropertyMetadata.Type);
232Assert.Equal(FormDataTypeKind.Primitive, subProperty.PropertyMetadata.Kind);
233Assert.Null(subProperty.PropertyMetadata.Constructor);
234Assert.Empty(subProperty.PropertyMetadata.Properties);
239Assert.NotNull(subProperty.PropertyMetadata);
240Assert.Equal(typeof(string), subProperty.PropertyMetadata.Type);
241Assert.Equal(FormDataTypeKind.Primitive, subProperty.PropertyMetadata.Kind);
242Assert.Null(subProperty.PropertyMetadata.Constructor);
243Assert.Empty(subProperty.PropertyMetadata.Properties);
265Assert.NotNull(property.PropertyMetadata);
266Assert.Equal(typeof(string), property.PropertyMetadata.Type);
267Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
268Assert.Null(property.PropertyMetadata.Constructor);
269Assert.Empty(property.PropertyMetadata.Properties);
274Assert.NotNull(property.PropertyMetadata);
275Assert.Equal(typeof(Dictionary<string, Warehouse>), property.PropertyMetadata.Type);
276Assert.Equal(FormDataTypeKind.Dictionary, property.PropertyMetadata.Kind);
277Assert.NotNull(property.PropertyMetadata.KeyType);
278Assert.NotNull(property.PropertyMetadata.ValueType);
279Assert.Null(property.PropertyMetadata.Constructor);
281property.PropertyMetadata.ValueType.Properties,
285Assert.NotNull(subProperty.PropertyMetadata);
286Assert.Equal(typeof(string), subProperty.PropertyMetadata.Type);
287Assert.Equal(FormDataTypeKind.Primitive, subProperty.PropertyMetadata.Kind);
288Assert.Null(subProperty.PropertyMetadata.Constructor);
289Assert.Empty(subProperty.PropertyMetadata.Properties);
294Assert.NotNull(subProperty.PropertyMetadata);
295Assert.Equal(typeof(Address), subProperty.PropertyMetadata.Type);
296Assert.Equal(FormDataTypeKind.Object, subProperty.PropertyMetadata.Kind);
297Assert.Null(subProperty.PropertyMetadata.Constructor);
299subProperty.PropertyMetadata.Properties,
303Assert.NotNull(subSubProperty.PropertyMetadata);
304Assert.Equal(typeof(string), subSubProperty.PropertyMetadata.Type);
305Assert.Equal(FormDataTypeKind.Primitive, subSubProperty.PropertyMetadata.Kind);
306Assert.Null(subSubProperty.PropertyMetadata.Constructor);
307Assert.Empty(subSubProperty.PropertyMetadata.Properties);
312Assert.NotNull(subSubProperty.PropertyMetadata);
313Assert.Equal(typeof(string), subSubProperty.PropertyMetadata.Type);
314Assert.Equal(FormDataTypeKind.Primitive, subSubProperty.PropertyMetadata.Kind);
315Assert.Null(subSubProperty.PropertyMetadata.Constructor);
316Assert.Empty(subSubProperty.PropertyMetadata.Properties);
340Assert.NotNull(property.PropertyMetadata);
341Assert.Equal(typeof(string), property.PropertyMetadata.Type);
342Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
343Assert.Null(property.PropertyMetadata.Constructor);
344Assert.Empty(property.PropertyMetadata.Properties);
349Assert.NotNull(property.PropertyMetadata);
350Assert.Equal(typeof(RecursiveList<string>), property.PropertyMetadata.Type);
351Assert.Equal(FormDataTypeKind.Object, property.PropertyMetadata.Kind);
352Assert.Same(metadata, property.PropertyMetadata);
374Assert.NotNull(property.PropertyMetadata);
375Assert.Equal(typeof(string), property.PropertyMetadata.Type);
376Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
377Assert.Null(property.PropertyMetadata.Constructor);
378Assert.Empty(property.PropertyMetadata.Properties);
383Assert.NotNull(property.PropertyMetadata);
384Assert.Equal(typeof(DerivedList<string>), property.PropertyMetadata.Type);
385Assert.True(property.PropertyMetadata.IsRecursive);
386Assert.Equal(FormDataTypeKind.Object, property.PropertyMetadata.Kind);
387Assert.NotSame(metadata, property.PropertyMetadata);
388Assert.Collection(property.PropertyMetadata.Properties,
392Assert.NotNull(subProperty.PropertyMetadata);
393Assert.Equal(typeof(string), subProperty.PropertyMetadata.Type);
394Assert.Equal(FormDataTypeKind.Primitive, subProperty.PropertyMetadata.Kind);
395Assert.Null(subProperty.PropertyMetadata.Constructor);
396Assert.Empty(subProperty.PropertyMetadata.Properties);
401Assert.NotNull(subProperty.PropertyMetadata);
402Assert.Equal(typeof(DerivedList<string>), subProperty.PropertyMetadata.Type);
403Assert.Equal(FormDataTypeKind.Object, subProperty.PropertyMetadata.Kind);
404Assert.Same(property.PropertyMetadata, subProperty.PropertyMetadata);
427Assert.NotNull(property.PropertyMetadata);
428Assert.Equal(typeof(string), property.PropertyMetadata.Type);
429Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
430Assert.Null(property.PropertyMetadata.Constructor);
431Assert.Empty(property.PropertyMetadata.Properties);
436Assert.NotNull(property.PropertyMetadata);
437Assert.Equal(typeof(List<Tree<string>>), property.PropertyMetadata.Type);
438Assert.Equal(FormDataTypeKind.Collection, property.PropertyMetadata.Kind);
439Assert.False(property.PropertyMetadata.IsRecursive);
440Assert.Null(property.PropertyMetadata.Constructor);
441Assert.Empty(property.PropertyMetadata.Properties);
442Assert.Same(metadata, property.PropertyMetadata.ElementType);
464Assert.NotNull(property.PropertyMetadata);
465Assert.Equal(typeof(string), property.PropertyMetadata.Type);
466Assert.Equal(FormDataTypeKind.Primitive, property.PropertyMetadata.Kind);
467Assert.Null(property.PropertyMetadata.Constructor);
468Assert.Empty(property.PropertyMetadata.Properties);
473Assert.NotNull(property.PropertyMetadata);
474Assert.Equal(typeof(Dictionary<string, DictionaryTree<string>>), property.PropertyMetadata.Type);
475Assert.Equal(FormDataTypeKind.Dictionary, property.PropertyMetadata.Kind);
476Assert.False(property.PropertyMetadata.IsRecursive);
477Assert.Null(property.PropertyMetadata.Constructor);
478Assert.Empty(property.PropertyMetadata.Properties);
479Assert.Same(metadata, property.PropertyMetadata.ValueType);