1548 references to XamlSchemaContext
PresentationFramework (1)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
31
:
base
()
System.Xaml (3)
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
221
schemaContext = new
XamlSchemaContext
();
System\Xaml\XamlObjectReader.cs (1)
36
: this(instance, new
XamlSchemaContext
(), settings)
System\Xaml\XamlServices.cs (1)
180
using (XamlXmlWriter xamlWriter = new XamlXmlWriter(writer, new
XamlSchemaContext
()))
System.Xaml.Tests (1544)
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
14
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
16
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
System\Windows\Markup\XamlSetValueEventArgsTests.cs (1)
14
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
System\Xaml\AmbientPropertyValueTests.cs (1)
14
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
System\Xaml\Replacements\DateTimeConverter2Tests.cs (8)
22
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
41
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
51
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
63
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
82
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
92
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
102
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
110
var type = new XamlType(typeof(DateTime), new
XamlSchemaContext
());
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (9)
24
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
41
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
51
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
63
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
78
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
87
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
101
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
110
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
118
var type = new XamlType(typeof(DateTimeOffset), new
XamlSchemaContext
());
System\Xaml\Replacements\EventConverterTests.cs (10)
21
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
29
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
68
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
103
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
130
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
140
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
153
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
163
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
173
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
182
var type = new XamlType(typeof(Delegate), new
XamlSchemaContext
());
System\Xaml\Replacements\TypeListConverterTests.cs (7)
20
var type = new XamlType(typeof(Type[]), new
XamlSchemaContext
());
28
var type = new XamlType(typeof(Type[]), new
XamlSchemaContext
());
39
var type = new XamlType(typeof(Type[]), new
XamlSchemaContext
());
52
var type = new XamlType(typeof(Type[]), new
XamlSchemaContext
());
62
var type = new XamlType(typeof(Type[]), new
XamlSchemaContext
());
71
var type = new XamlType(typeof(Type[]), new
XamlSchemaContext
());
79
var type = new XamlType(typeof(Type[]), new
XamlSchemaContext
());
System\Xaml\Replacements\TypeTypeConverterTests.cs (18)
22
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
30
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
55
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
71
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
81
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
94
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
102
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
112
SchemaContextResult = new
XamlSchemaContext
()
138
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
150
GetXamlTypeAction = (type) => new XamlType(typeof(short), new
XamlSchemaContext
())
177
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
207
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
225
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
235
SchemaContextResult = new
XamlSchemaContext
()
249
var expectedType = new XamlType(typeof(int), new
XamlSchemaContext
());
258
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
268
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
277
var type = new XamlType(typeof(Type), new
XamlSchemaContext
());
System\Xaml\Replacements\TypeUriConverterTests.cs (2)
32
var normalType = new XamlType(typeof(Uri), new
XamlSchemaContext
());
39
var type = new XamlType(typeof(Uri), new
XamlSchemaContext
());
System\Xaml\Schema\XamlMemberInvokerTests.cs (15)
24
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
36
var member = new XamlMember("StaticProperty", getter, setter, new
XamlSchemaContext
());
62
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
72
var member = new XamlMember(property, new
XamlSchemaContext
());
83
var member = new XamlMember("StaticProperty", getter, setter, new
XamlSchemaContext
());
99
var member = new XamlMember("StaticProperty", null, setter, new
XamlSchemaContext
());
116
var member = new XamlMember(property, new
XamlSchemaContext
());
128
var member = new XamlMember("StaticProperty", getter, setter, new
XamlSchemaContext
());
145
var member = new XamlMember("StaticProperty", getter, null, new
XamlSchemaContext
());
166
var member = new XamlMember(property, new
XamlSchemaContext
());
181
var member = new XamlMember(nameof(SerializeClass.AttachablePublicProperty), getter, setter, new
XamlSchemaContext
());
196
var member = new XamlMember(nameof(SerializeClass.AttachablePrivateProperty), getter, setter, new
XamlSchemaContext
());
211
var member = new CustomTargetType(nameof(SerializeClass.AttachableCustomProperty), getter, setter, new
XamlSchemaContext
());
221
var member = new XamlMember(property, new
XamlSchemaContext
());
284
return new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
System\Xaml\Schema\XamlTypeInvokerTests.cs (71)
27
var type = new XamlType(typeof(ClassWithAttributes), new
XamlSchemaContext
());
51
var invoker = new XamlTypeInvoker(new XamlType(typeof(ListAddGetEnumeratorClass), new
XamlSchemaContext
()));
78
yield return new object[] { new XamlTypeInvoker(new XamlType("namespace", "name", null, new
XamlSchemaContext
())) };
91
var invoker = new XamlTypeInvoker(new XamlType(typeof(object), new
XamlSchemaContext
()));
98
var invoker = new XamlTypeInvoker(new XamlType(typeof(List<int>), new
XamlSchemaContext
()));
105
var invoker = new XamlTypeInvoker(new XamlType(typeof(DictionaryAddGetEnumeratorClass), new
XamlSchemaContext
()));
141
var invoker = new XamlTypeInvoker(new XamlType(typeof(object), new
XamlSchemaContext
()));
148
var invoker = new XamlTypeInvoker(new XamlType(typeof(Dictionary<object, int>), new
XamlSchemaContext
()));
155
var invoker = new XamlTypeInvoker(new XamlType(typeof(PublicClass), new
XamlSchemaContext
()));
163
var invoker = new XamlTypeInvoker(new XamlType(typeof(PublicClass), new
XamlSchemaContext
()));
170
var invoker = new XamlTypeInvoker(new XamlType(typeof(PrivateClass), new
XamlSchemaContext
()));
178
var invoker = new XamlTypeInvoker(new XamlType(typeof(int), new
XamlSchemaContext
()));
194
var invoker = new XamlTypeInvoker(new XamlType(typeof(NoDefaultConstructorClass), new
XamlSchemaContext
()));
224
new XamlType(typeof(int), new
XamlSchemaContext
()),
229
new XamlTypeInvoker(new XamlType("namespace", "name", null, new
XamlSchemaContext
())),
230
new XamlType(typeof(int), new
XamlSchemaContext
()),
235
new XamlTypeInvoker(new XamlType(typeof(int), new
XamlSchemaContext
())),
236
new XamlType(typeof(int), new
XamlSchemaContext
()),
243
new XamlTypeInvoker(new XamlType(typeof(List<int>), new
XamlSchemaContext
())),
244
new XamlType(typeof(int), new
XamlSchemaContext
()),
249
new XamlTypeInvoker(new XamlType(typeof(List<Array>), new
XamlSchemaContext
())),
250
new XamlType(typeof(int[]), new
XamlSchemaContext
()),
255
new XamlTypeInvoker(new XamlType(typeof(List<Array>), new
XamlSchemaContext
())),
256
new XamlType(typeof(object), new
XamlSchemaContext
()),
261
new XamlTypeInvoker(new XamlType(typeof(List<int>), new
XamlSchemaContext
())),
262
new XamlType(typeof(string), new
XamlSchemaContext
()),
267
new XamlTypeInvoker(new XamlType(typeof(ListAddGetEnumeratorClass), new
XamlSchemaContext
())),
268
new XamlType(typeof(object), new
XamlSchemaContext
()),
273
new XamlTypeInvoker(new XamlType(typeof(Dictionary<int, string>), new
XamlSchemaContext
())),
274
new XamlType(typeof(int[]), new
XamlSchemaContext
()),
279
new XamlTypeInvoker(new XamlType(typeof(Dictionary<int, string>), new
XamlSchemaContext
())),
280
new XamlType(typeof(KeyValuePair<int, string>), new
XamlSchemaContext
()),
285
new XamlTypeInvoker(new XamlType(typeof(DictionaryAddGetEnumeratorClass), new
XamlSchemaContext
())),
286
new XamlType(typeof(object), new
XamlSchemaContext
()),
295
new XamlTypeInvoker(new XamlType(type, new
XamlSchemaContext
())),
296
new XamlType(typeof(int), new
XamlSchemaContext
()),
301
new XamlTypeInvoker(new XamlType(type, new
XamlSchemaContext
())),
302
new XamlType(typeof(string), new
XamlSchemaContext
()),
307
new XamlTypeInvoker(new CustomXamlType(type, new
XamlSchemaContext
())
311
new XamlType(typeof(string), new
XamlSchemaContext
()),
312
new XamlType(typeof(Array), new
XamlSchemaContext
()),
313
new XamlType(typeof(short), new
XamlSchemaContext
())
316
new XamlType(typeof(string), new
XamlSchemaContext
()),
321
new XamlTypeInvoker(new XamlType(type, new
XamlSchemaContext
())),
322
new XamlType(typeof(Array), new
XamlSchemaContext
()),
327
new XamlTypeInvoker(new XamlType(type, new
XamlSchemaContext
())),
328
new XamlType(typeof(int[]), new
XamlSchemaContext
()),
333
new XamlTypeInvoker(new CustomXamlType(type, new
XamlSchemaContext
())
337
new XamlType(typeof(string), new
XamlSchemaContext
()),
338
new XamlType(typeof(Array), new
XamlSchemaContext
()),
339
new XamlType(typeof(double), new
XamlSchemaContext
())
342
new XamlType(typeof(int[]), new
XamlSchemaContext
()),
347
new XamlTypeInvoker(new CustomXamlType(type, new
XamlSchemaContext
())
351
new XamlType(typeof(string), new
XamlSchemaContext
()),
352
new XamlType(typeof(Array), new
XamlSchemaContext
()),
353
new XamlType(typeof(double), new
XamlSchemaContext
())
356
new XamlType(typeof(double), new
XamlSchemaContext
()),
361
new XamlTypeInvoker(new CustomXamlType(type, new
XamlSchemaContext
())
365
new XamlType(typeof(string), new
XamlSchemaContext
()),
366
new XamlType(typeof(Array), new
XamlSchemaContext
()),
367
new XamlType(typeof(double), new
XamlSchemaContext
())
370
new XamlType(typeof(object), new
XamlSchemaContext
()),
452
new XamlTypeInvoker(new XamlType("namespace", "name", null, new
XamlSchemaContext
())),
457
new XamlTypeInvoker(new XamlType(typeof(int), new
XamlSchemaContext
())),
464
new XamlTypeInvoker(new XamlType(typeof(ICollection<int>), new
XamlSchemaContext
())),
469
new XamlTypeInvoker(new XamlType(typeof(List<int>), new
XamlSchemaContext
())),
474
new XamlTypeInvoker(new XamlType(typeof(GetEnumeratorClass), new
XamlSchemaContext
())),
479
new XamlTypeInvoker(new XamlType(typeof(BadReturnGetEnumeratorClass), new
XamlSchemaContext
())),
484
new XamlTypeInvoker(new XamlType(typeof(TooManyParametersGetEnumeratorClass), new
XamlSchemaContext
())),
500
var invoker = new XamlTypeInvoker(new XamlType(typeof(GetEnumeratorClass), new
XamlSchemaContext
()));
534
var invoker = new XamlTypeInvoker(new XamlType(typeof(object), new
XamlSchemaContext
()));
System\Xaml\Schema\XamlTypeNameTests.cs (3)
55
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
65
var typeArgument = new XamlType("typeNamespace", "typeName", null, new
XamlSchemaContext
());
66
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", new XamlType[] { typeArgument }, new
XamlSchemaContext
());
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (6)
27
var context = new
XamlSchemaContext
();
108
SchemaContextResult = new
XamlSchemaContext
()
225
var type = new XamlType(typeof(int), new
XamlSchemaContext
());
248
var type = new XamlType(typeof(int), new
XamlSchemaContext
());
267
var type = new XamlType(typeof(int), new
XamlSchemaContext
());
276
var type = new XamlType(typeof(int), new
XamlSchemaContext
());
System\Xaml\Schema\XamlValueConverterTests.cs (8)
15
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
32
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
59
var type = new XamlType(typeof(string), new
XamlSchemaContext
());
68
var type = new XamlType(typeof(ConsoleColor), new
XamlSchemaContext
());
77
var type = new XamlType(typeof(ConsoleColor), new
XamlSchemaContext
());
85
var type = new XamlType(typeof(string), new
XamlSchemaContext
());
93
var type = new XamlType(typeof(ConsoleColor), new
XamlSchemaContext
());
100
var type1 = new XamlType("unknownTypeNamespace", "unknownTypeName1", null, new
XamlSchemaContext
());
System\Xaml\XamlBackgroundReaderTests.cs (10)
25
TypeResult = new XamlType(typeof(int), new
XamlSchemaContext
()),
27
MemberResult = new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false),
28
SchemaContextResult = new
XamlSchemaContext
(),
173
SchemaContextResult = new
XamlSchemaContext
()
195
SchemaContextResult = new
XamlSchemaContext
()
243
SchemaContextResult = new
XamlSchemaContext
()
267
SchemaContextResult = new
XamlSchemaContext
()
283
SchemaContextResult = new
XamlSchemaContext
(),
296
SchemaContextResult = new
XamlSchemaContext
()
311
SchemaContextResult = new
XamlSchemaContext
(),
System\Xaml\XamlDirectiveTests.cs (11)
17
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
29
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
48
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
55
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
82
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
90
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
97
var type1 = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
98
var type2 = new XamlType("unknownTypeNamespace2", "unknownTypeName", null, new
XamlSchemaContext
());
149
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
248
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
257
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
System\Xaml\XamlDuplicateMemberExceptionTests.cs (1)
39
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
System\Xaml\XamlMemberTests.cs (327)
23
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
36
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
48
yield return new object[] { typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
() };
68
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
69
yield return new object?[] { typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
(), null };
70
yield return new object?[] { typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
(), new XamlMemberInvoker(new XamlMember("name", type, false)) };
98
Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new
XamlSchemaContext
()));
99
Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
104
yield return new object[] { typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
() };
124
var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new
XamlSchemaContext
());
125
yield return new object?[] { typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
(), null };
126
yield return new object?[] { typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
(), new XamlMemberInvoker(new XamlMember("name", type, false)) };
154
Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new
XamlSchemaContext
()));
155
Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
160
yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
() };
161
yield return new object?[] { "name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
() };
162
yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new
XamlSchemaContext
() };
163
yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticGetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new
XamlSchemaContext
() };
183
yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
(), null };
184
yield return new object?[] { "name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker };
185
yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new
XamlSchemaContext
(), null };
186
yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticGetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new
XamlSchemaContext
(), null };
215
Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new
XamlSchemaContext
()));
216
Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
222
Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new
XamlSchemaContext
()));
223
Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
233
Assert.Throws<ArgumentException>("getter", () => new XamlMember("name", getter, null, new
XamlSchemaContext
()));
234
Assert.Throws<ArgumentException>("getter", () => new XamlMember("name", getter, null, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
243
Assert.Throws<ArgumentException>("setter", () => new XamlMember("name", null, setter, new
XamlSchemaContext
()));
244
Assert.Throws<ArgumentException>("setter", () => new XamlMember("name", null, setter, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
249
yield return new object[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
() };
250
yield return new object[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new
XamlSchemaContext
() };
270
yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
(), null };
271
yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker };
300
Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new
XamlSchemaContext
()));
301
Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
307
Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new
XamlSchemaContext
()));
308
Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
317
Assert.Throws<ArgumentException>("adder", () => new XamlMember("name", adder, new
XamlSchemaContext
()));
318
Assert.Throws<ArgumentException>("adder", () => new XamlMember("name", adder, new
XamlSchemaContext
(), XamlMemberInvoker.UnknownInvoker));
347
var member = new XamlMember(name, new XamlType(typeof(int), new
XamlSchemaContext
()), false);
355
var member = new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false);
362
var member = new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
());
369
var member = new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()) { GetXamlNamespacesResult = new string[] { "namespace1", "namespace2" } };
376
var member = new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()) { GetXamlNamespacesResult = Array.Empty<string>() };
383
var member = new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()) { GetXamlNamespacesResult = null };
390
var member = new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false);
396
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null };
397
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null };
398
yield return new object?[] { new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()), null };
403
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
414
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
425
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
438
new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.TypeXamlDeferLoadAttribute))!, new
XamlSchemaContext
()),
443
new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.StringXamlDeferLoadAttribute))!, new
XamlSchemaContext
()),
448
new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.ClassWithTypeXamlDeferLoadAttribute))!, new
XamlSchemaContext
()),
453
new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.ClassWithStringXamlDeferLoadAttribute))!, new
XamlSchemaContext
()),
459
new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.TypeXamlDeferLoadAttribute))!, new
XamlSchemaContext
())
478
var member = new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.TypeXamlDeferLoadAttribute))!, new
XamlSchemaContext
())
492
var member = new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.TypeXamlDeferLoadAttribute))!, new
XamlSchemaContext
())
506
var member = new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.TypeXamlDeferLoadAttribute))!, new
XamlSchemaContext
())
524
var member = new SubXamlMember(typeof(XamlDeferLoadData).GetProperty(propertyName)!, new
XamlSchemaContext
());
534
var member = new SubXamlMember(typeof(XamlDeferLoadData).GetProperty(propertyName)!, new
XamlSchemaContext
());
571
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null };
572
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null };
573
yield return new object?[] { new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()), null };
578
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
585
new XamlMember[] { new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()), new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()) }
589
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
600
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
612
new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
638
var member = new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
652
var member = new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
666
var member = new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
680
var member = new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
694
var member = new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false);
702
var member = new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
());
710
var invoker = new XamlMemberInvoker(new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()));
711
var member = new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
(), invoker);
720
var member = new CustomXamlMember(typeof(XamlDeferLoadData).GetProperty(nameof(XamlDeferLoadData.ClassWithTypeXamlDeferLoadAttribute))!, new
XamlSchemaContext
())
737
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), false };
738
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), false };
739
yield return new object[] { new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()), false };
744
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
755
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
768
new SubXamlMember(typeof(AmbientData).GetProperty(nameof(AmbientData.Property))!, new
XamlSchemaContext
()),
774
new CustomXamlMember(typeof(AmbientData).GetProperty(nameof(AmbientData.Property))!, new
XamlSchemaContext
())
805
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), false, false };
806
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), false, false };
810
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
815
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
821
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
826
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
832
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
840
new CustomXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
())
858
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), true, true };
859
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), true, true };
863
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
868
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.PrivateGetProperty))!, new
XamlSchemaContext
()),
873
new SubXamlMember(typeof(DataClass).GetProperty("InternalProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
878
new SubXamlMember(typeof(DataClass).GetProperty("ProtectedProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
883
new SubXamlMember(typeof(DataClass).GetProperty("PrivateProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
888
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
()),
893
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.SetOnlyProperty))!, new
XamlSchemaContext
()),
898
new SubXamlMember(typeof(PrivateDeclaringType).GetProperty(nameof(PrivateDeclaringType.Property))!, new
XamlSchemaContext
()),
903
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
908
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new
XamlSchemaContext
()),
913
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
919
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
924
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
930
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
())
938
new CustomXamlMember(typeof(PrivateDeclaringType).GetProperty(nameof(PrivateDeclaringType.Property))!, new
XamlSchemaContext
())
963
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), false };
964
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), false };
968
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
973
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.PrivateGetProperty))!, new
XamlSchemaContext
()),
978
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
()),
983
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.SetOnlyProperty))!, new
XamlSchemaContext
()),
988
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
993
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new
XamlSchemaContext
()),
998
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1004
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1009
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1015
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
())
1040
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), true, true };
1041
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), true, true };
1045
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1050
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1056
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1061
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1067
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1075
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1100
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), true, true };
1101
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), true, true };
1105
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1110
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.PrivateSetProperty))!, new
XamlSchemaContext
()),
1115
new SubXamlMember(typeof(DataClass).GetProperty("InternalProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
1120
new SubXamlMember(typeof(DataClass).GetProperty("ProtectedProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
1125
new SubXamlMember(typeof(DataClass).GetProperty("PrivateProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
1130
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
()),
1135
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.SetOnlyProperty))!, new
XamlSchemaContext
()),
1140
new SubXamlMember(typeof(PrivateDeclaringType).GetProperty(nameof(PrivateDeclaringType.Property))!, new
XamlSchemaContext
()),
1145
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1150
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new
XamlSchemaContext
()),
1155
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1161
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1166
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1172
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
())
1180
new CustomXamlMember(typeof(PrivateDeclaringType).GetProperty(nameof(PrivateDeclaringType.Property))!, new
XamlSchemaContext
())
1205
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), false };
1206
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), false };
1210
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1215
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.PrivateSetProperty))!, new
XamlSchemaContext
()),
1220
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
()),
1225
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.SetOnlyProperty))!, new
XamlSchemaContext
()),
1230
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1235
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new
XamlSchemaContext
()),
1240
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1246
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1251
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1257
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.SetOnlyProperty))!, new
XamlSchemaContext
())
1282
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null };
1283
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null };
1284
yield return new object?[] { new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()), new Dictionary<char, char>() };
1289
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1300
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1311
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1324
new SubXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
()),
1330
new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
1356
var member = new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
1370
var member = new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
1384
var member = new CustomXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.Property))!, new
XamlSchemaContext
())
1398
var member = new SubXamlMember(typeof(MarkupExtensionBracketCharactersData).GetProperty(nameof(MarkupExtensionBracketCharactersData.DuplicateProperty))!, new
XamlSchemaContext
());
1416
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), DesignerSerializationVisibility.Visible };
1417
yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), DesignerSerializationVisibility.Visible };
1418
yield return new object[] { new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()), DesignerSerializationVisibility.Visible };
1423
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1434
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1445
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1458
new SubXamlMember(typeof(DesignerSerializationVisibilityData).GetProperty(nameof(DesignerSerializationVisibilityData.Property))!, new
XamlSchemaContext
()),
1480
var member = new CustomXamlMember(typeof(DesignerSerializationVisibilityData).GetProperty(nameof(DesignerSerializationVisibilityData.Property))!, new
XamlSchemaContext
())
1493
var member = new CustomXamlMember(typeof(DesignerSerializationVisibilityData).GetProperty(nameof(DesignerSerializationVisibilityData.Property))!, new
XamlSchemaContext
())
1506
var member = new CustomXamlMember(typeof(DesignerSerializationVisibilityData).GetProperty(nameof(DesignerSerializationVisibilityData.Property))!, new
XamlSchemaContext
())
1524
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()) };
1525
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), XamlLanguage.Object, XamlLanguage.Object };
1529
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1530
new XamlType(typeof(DataClass), new
XamlSchemaContext
()), new XamlType(typeof(DataClass), new
XamlSchemaContext
())
1534
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1535
new XamlType(typeof(string), new
XamlSchemaContext
()), new XamlType(typeof(string), new
XamlSchemaContext
())
1540
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1541
new XamlType(typeof(DataClass), new
XamlSchemaContext
()), new XamlType(typeof(DataClass), new
XamlSchemaContext
())
1545
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1546
new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
())
1551
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true)
1560
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true)
1568
new CustomXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
())
1576
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1580
null, new XamlType(typeof(DataClass), new
XamlSchemaContext
())
1601
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null };
1602
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null };
1606
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1607
new XamlType(typeof(int), new
XamlSchemaContext
())
1611
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1612
new XamlType(typeof(int), new
XamlSchemaContext
())
1616
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1617
new XamlType(typeof(string), new
XamlSchemaContext
())
1621
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new
XamlSchemaContext
()),
1622
new XamlType(typeof(int), new
XamlSchemaContext
())
1627
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1628
new XamlType(typeof(EventHandler), new
XamlSchemaContext
())
1632
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1633
new XamlType(typeof(string), new
XamlSchemaContext
())
1637
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new
XamlSchemaContext
()),
1638
new XamlType(typeof(int), new
XamlSchemaContext
())
1643
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1650
new XamlType(typeof(string), new
XamlSchemaContext
())
1654
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1662
new CustomXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
())
1687
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object), null };
1688
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object), null };
1693
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1704
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1715
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1728
new SubXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.ClassWithTypeConverterAttribute))!, new
XamlSchemaContext
()),
1733
new SubXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.StructWithTypeConverterAttribute))!, new
XamlSchemaContext
()),
1738
new SubXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.InheritedClassWithTypeConverterAttribute))!, new
XamlSchemaContext
()),
1744
new CustomXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.ClassWithTypeConverterAttribute))!, new
XamlSchemaContext
())
1770
var member = new CustomXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.ClassWithTypeConverterAttribute))!, new
XamlSchemaContext
())
1784
var member = new CustomXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.ClassWithTypeConverterAttribute))!, new
XamlSchemaContext
())
1798
var member = new CustomXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.ClassWithTypeConverterAttribute))!, new
XamlSchemaContext
())
1814
var member = new SubXamlMember(typeof(TypeConverterData).GetProperty(propertyName)!, new
XamlSchemaContext
());
1822
var member = new SubXamlMember(typeof(TypeConverterData).GetProperty(nameof(TypeConverterData.ClassWithNullStringTypeConverterAttribute))!, new
XamlSchemaContext
());
1840
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null };
1841
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null };
1845
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1850
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.PrivateGetProperty))!, new
XamlSchemaContext
()),
1855
new SubXamlMember(typeof(DataClass).GetProperty("PrivateProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
1860
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.SetOnlyProperty))!, new
XamlSchemaContext
()),
1865
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1870
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1876
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1881
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1887
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
1904
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null, null };
1905
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null, null };
1909
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1914
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1919
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1925
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
1930
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1936
new CustomXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
())
1944
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1969
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null };
1970
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null };
1974
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
1979
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.PrivateGetProperty))!, new
XamlSchemaContext
()),
1984
new SubXamlMember(typeof(DataClass).GetProperty("PrivateProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
1989
new SubXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.GetOnlyProperty))!, new
XamlSchemaContext
()),
1994
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
1999
new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
2005
new SubXamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event))!, new
XamlSchemaContext
()),
2010
new SubXamlMember(typeof(DataClass).GetEvent("PrivateEvent", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
2015
new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
2021
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
2038
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false), null };
2039
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true), null };
2044
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
2055
new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
2066
new CustomXamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
2079
new SubXamlMember(typeof(ValueSerializerData).GetProperty(nameof(ValueSerializerData.ClassWithValueSerializerAttribute))!, new
XamlSchemaContext
()),
2084
new SubXamlMember(typeof(ValueSerializerData).GetProperty(nameof(ValueSerializerData.StructWithValueSerializerAttribute))!, new
XamlSchemaContext
()),
2089
new SubXamlMember(typeof(ValueSerializerData).GetProperty(nameof(ValueSerializerData.InheritedClassWithValueSerializerAttribute))!, new
XamlSchemaContext
()),
2095
new CustomXamlMember(typeof(ValueSerializerData).GetProperty(nameof(ValueSerializerData.ClassWithValueSerializerAttribute))!, new
XamlSchemaContext
())
2121
var member = new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
2135
var member = new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
2149
var member = new CustomXamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
())
2163
var member = new SubXamlMember(typeof(ValueSerializerData).GetProperty(nameof(ValueSerializerData.ClassWithNullValueSerializerAttribute))!, new
XamlSchemaContext
());
2171
var member = new SubXamlMember(typeof(ValueSerializerData).GetProperty(nameof(ValueSerializerData.ClassWithNullStringValueSerializerAttribute))!, new
XamlSchemaContext
());
2189
var member = new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
());
2195
var member = new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
());
2197
yield return new object?[] { member, new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()), true };
2198
yield return new object?[] { member, new XamlMember(typeof(DesignerSerializationVisibilityData).GetProperty(nameof(DesignerSerializationVisibilityData.Property))!, new
XamlSchemaContext
()), false };
2199
yield return new object?[] { member, new XamlMember(typeof(AmbientData).GetProperty(nameof(AmbientData.Property))!, new
XamlSchemaContext
()), false };
2200
yield return new object?[] { member, new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()), false };
2201
yield return new object?[] { member, new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false), false };
2202
yield return new object?[] { member, new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()), false };
2203
yield return new object?[] { member, new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()), false };
2207
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2208
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2213
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2214
new XamlMember(typeof(DataClass).GetEvent("PrivateEvent", BindingFlags.Instance | BindingFlags.NonPublic), new
XamlSchemaContext
()),
2219
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2220
new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
2225
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2226
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2231
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2232
new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
2237
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2238
new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
2244
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2245
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2250
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2251
new XamlMember("other", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2256
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2257
new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false),
2262
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2263
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), true),
2268
new XamlMember("Property", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2269
new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()),
2274
new XamlMember("Event", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2275
new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()),
2280
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2281
new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
2286
new XamlMember("name", new XamlType(typeof(DataClass), new
XamlSchemaContext
()), false),
2287
new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new
XamlSchemaContext
()),
2314
yield return new object[] { new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false) };
2315
yield return new object[] { new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), true) };
2317
yield return new object[] { new XamlMember(typeof(DataClass).GetProperty(nameof(DataClass.Property))!, new
XamlSchemaContext
()) };
2323
}, new
XamlSchemaContext
())
2325
yield return new object[] { new XamlMember(typeof(DataClass).GetEvent(nameof(DataClass.Event)), new
XamlSchemaContext
()) };
System\Xaml\XamlNodeListTests.cs (40)
15
var context = new
XamlSchemaContext
();
25
var context = new
XamlSchemaContext
();
40
var context = new
XamlSchemaContext
();
47
var context = new
XamlSchemaContext
();
68
var context = new
XamlSchemaContext
();
111
var list = new XamlNodeList(new
XamlSchemaContext
());
123
var context = new
XamlSchemaContext
();
147
var context = new
XamlSchemaContext
();
171
var context = new
XamlSchemaContext
();
197
var context = new
XamlSchemaContext
();
211
var list = new XamlNodeList(new
XamlSchemaContext
());
218
var list = new XamlNodeList(new
XamlSchemaContext
());
232
var list = new XamlNodeList(new
XamlSchemaContext
());
241
var list = new XamlNodeList(new
XamlSchemaContext
());
261
var list = new XamlNodeList(new
XamlSchemaContext
());
271
var list = new XamlNodeList(new
XamlSchemaContext
());
291
var list = new XamlNodeList(new
XamlSchemaContext
());
301
var list = new XamlNodeList(new
XamlSchemaContext
());
321
var list = new XamlNodeList(new
XamlSchemaContext
());
331
var list = new XamlNodeList(new
XamlSchemaContext
());
351
var list = new XamlNodeList(new
XamlSchemaContext
());
361
var list = new XamlNodeList(new
XamlSchemaContext
());
381
var list = new XamlNodeList(new
XamlSchemaContext
());
391
var list = new XamlNodeList(new
XamlSchemaContext
());
411
var list = new XamlNodeList(new
XamlSchemaContext
());
421
var list = new XamlNodeList(new
XamlSchemaContext
());
442
var list = new XamlNodeList(new
XamlSchemaContext
());
452
var list = new XamlNodeList(new
XamlSchemaContext
());
484
var list = new XamlNodeList(new
XamlSchemaContext
());
511
var list = new XamlNodeList(new
XamlSchemaContext
());
537
var list = new XamlNodeList(new
XamlSchemaContext
());
548
var list = new XamlNodeList(new
XamlSchemaContext
());
556
var list = new XamlNodeList(new
XamlSchemaContext
());
567
var list = new XamlNodeList(new
XamlSchemaContext
());
576
var list = new XamlNodeList(new
XamlSchemaContext
());
589
var list = new XamlNodeList(new
XamlSchemaContext
());
612
var list = new XamlNodeList(new
XamlSchemaContext
());
635
var list = new XamlNodeList(new
XamlSchemaContext
());
655
var list = new XamlNodeList(new
XamlSchemaContext
());
675
var list = new XamlNodeList(new
XamlSchemaContext
());
System\Xaml\XamlNodeQueueTests.cs (28)
16
var context = new
XamlSchemaContext
();
31
var context = new
XamlSchemaContext
();
49
var context = new
XamlSchemaContext
();
60
var context = new
XamlSchemaContext
();
77
var context = new
XamlSchemaContext
();
88
var context = new
XamlSchemaContext
();
98
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
117
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
155
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
165
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
184
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
222
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
232
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
251
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
268
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
287
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
325
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
335
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
366
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
392
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
417
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
446
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
457
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
465
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
476
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
488
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
501
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
524
var queue = new XamlNodeQueue(new
XamlSchemaContext
());
System\Xaml\XamlReaderTests.cs (3)
63
TypeResult = new XamlType(typeof(int), new
XamlSchemaContext
()),
65
MemberResult = new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false),
66
SchemaContextResult = new
XamlSchemaContext
()
System\Xaml\XamlSchemaContextTests.cs (61)
21
var context = new
XamlSchemaContext
();
123
var context = new
XamlSchemaContext
();
185
var context = new
XamlSchemaContext
();
273
var context = new
XamlSchemaContext
();
436
var context = new
XamlSchemaContext
();
448
new XamlType(typeof(ArrayExtension), new
XamlSchemaContext
())
453
new XamlType(typeof(ArrayExtension), new
XamlSchemaContext
())
458
new XamlType(typeof(MemberDefinition), new
XamlSchemaContext
())
463
new XamlType(typeof(NullExtension), new
XamlSchemaContext
())
468
new XamlType(typeof(NullExtension), new
XamlSchemaContext
())
473
new XamlType(typeof(PropertyDefinition), new
XamlSchemaContext
())
478
new XamlType(typeof(Reference), new
XamlSchemaContext
())
483
new XamlType(typeof(Reference), new
XamlSchemaContext
())
488
new XamlType(typeof(StaticExtension), new
XamlSchemaContext
())
493
new XamlType(typeof(StaticExtension), new
XamlSchemaContext
())
498
new XamlType(typeof(TypeExtension), new
XamlSchemaContext
())
503
new XamlType(typeof(TypeExtension), new
XamlSchemaContext
())
508
new XamlType(typeof(string), new
XamlSchemaContext
())
513
new XamlType(typeof(double), new
XamlSchemaContext
())
518
new XamlType(typeof(short), new
XamlSchemaContext
())
523
new XamlType(typeof(int), new
XamlSchemaContext
())
528
new XamlType(typeof(long), new
XamlSchemaContext
())
533
new XamlType(typeof(bool), new
XamlSchemaContext
())
538
new XamlType(typeof(XData), new
XamlSchemaContext
())
543
new XamlType(typeof(object), new
XamlSchemaContext
())
548
new XamlType(typeof(char), new
XamlSchemaContext
())
553
new XamlType(typeof(float), new
XamlSchemaContext
())
558
new XamlType(typeof(byte), new
XamlSchemaContext
())
563
new XamlType(typeof(decimal), new
XamlSchemaContext
())
568
new XamlType(typeof(Uri), new
XamlSchemaContext
())
573
new XamlType(typeof(TimeSpan), new
XamlSchemaContext
())
590
new XamlType(typeof(int), new
XamlSchemaContext
())
595
new XamlType(typeof(int), new
XamlSchemaContext
())
600
new XamlType(typeof(XamlSchemaContextTests), new
XamlSchemaContext
())
610
new XamlType(typeof(List<int>), new
XamlSchemaContext
())
618
new XamlType(typeof(List<int>[]), new
XamlSchemaContext
())
626
new XamlType(typeof(List<int>[,][]), new
XamlSchemaContext
())
634
new XamlType(typeof(List<int>[,][]), new
XamlSchemaContext
())
642
new XamlType(typeof(List<int>[,,]), new
XamlSchemaContext
())
677
new XamlType(typeof(PublicNestedClass), new
XamlSchemaContext
())
687
new XamlType(typeof(PublicNestedClass.PublicClass), new
XamlSchemaContext
())
709
new XamlType(typeof(XamlType), new
XamlSchemaContext
())
714
new XamlType(typeof(MemberDefinition), new
XamlSchemaContext
())
719
new XamlType(typeof(MemberDefinition), new
XamlSchemaContext
())
734
new XamlType(typeof(PropertyDefinition), new
XamlSchemaContext
())
739
new XamlType(typeof(PropertyDefinition), new
XamlSchemaContext
())
754
new XamlType(typeof(AmbientAttribute), new
XamlSchemaContext
())
805
var context = new
XamlSchemaContext
();
858
new XamlType(typeof(int), new
XamlSchemaContext
())
868
new XamlType(typeof(int), new
XamlSchemaContext
())
878
new XamlType(typeof(int), new
XamlSchemaContext
())
886
new XamlType(typeof(int), new
XamlSchemaContext
())
949
var context = new
XamlSchemaContext
();
956
var context = new
XamlSchemaContext
();
963
var context = new
XamlSchemaContext
();
970
var context = new
XamlSchemaContext
();
977
var context = new
XamlSchemaContext
();
984
var context = new
XamlSchemaContext
();
996
var context = new
XamlSchemaContext
();
998
Assert.Equal(new XamlType(underlyingType, new
XamlSchemaContext
()), type);
1007
var context = new
XamlSchemaContext
();
System\Xaml\XamlServicesTests.cs (2)
52
Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Transform((XamlReader)null!, new XamlObjectWriter(new
XamlSchemaContext
())));
53
Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Transform((XamlReader)null!, new XamlObjectWriter(new
XamlSchemaContext
()), false));
System\Xaml\XamlTypeTests.cs (898)
25
yield return new object?[] { "", "", null, new
XamlSchemaContext
() };
26
yield return new object?[] { "unknownTypeNamespace", "unknownTypeName", Array.Empty<XamlType>(), new
XamlSchemaContext
() };
27
yield return new object?[] { "unknownTypeNamespace", "unknownTypeName", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
() };
46
Assert.Throws<ArgumentNullException>("unknownTypeNamespace", () => new XamlType(null, "unknownTypeName", Array.Empty<XamlType>(), new
XamlSchemaContext
()));
52
Assert.Throws<ArgumentNullException>("unknownTypeName", () => new XamlType("unknownTypeNamespace", null, Array.Empty<XamlType>(), new
XamlSchemaContext
()));
57
yield return new object?[] { "", null, new
XamlSchemaContext
() };
76
Assert.Throws<ArgumentNullException>("typeName", () => new SubXamlType(null!, Array.Empty<XamlType>(), new
XamlSchemaContext
()));
81
yield return new object?[] { typeof(int), new
XamlSchemaContext
(), "Int32", null };
82
yield return new object?[] { typeof(NestedClass), new
XamlSchemaContext
(), "XamlTypeTests+NestedClass", null };
83
yield return new object?[] { typeof(List<int>), new
XamlSchemaContext
(), "List", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) } };
84
yield return new object?[] { typeof(List<int>[][]), new
XamlSchemaContext
(), "List[][]", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) } };
101
yield return new object?[] { typeof(int), new
XamlSchemaContext
(), null, "Int32", null };
102
yield return new object?[] { typeof(NestedClass), new
XamlSchemaContext
(), new XamlTypeInvoker(new XamlType(typeof(int), new
XamlSchemaContext
())), "XamlTypeTests+NestedClass", null };
103
yield return new object?[] { typeof(List<int>), new
XamlSchemaContext
(), XamlTypeInvoker.UnknownInvoker, "List", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) } };
104
yield return new object?[] { typeof(List<int>[][]), new
XamlSchemaContext
(), null, "List[][]", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) } };
130
Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new
XamlSchemaContext
()));
131
Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new
XamlSchemaContext
(), XamlTypeInvoker.UnknownInvoker));
138
Assert.Throws<ArgumentException>(() => new XamlType("unknownTypeNamespace", "unknownTypeName", new XamlType?[] { null }, new
XamlSchemaContext
()));
139
Assert.Throws<ArgumentException>(() => new SubXamlType("typeName", new XamlType?[] { null }, new
XamlSchemaContext
()));
161
var type = new XamlType("namespace", name, null, new
XamlSchemaContext
());
169
var type = new XamlType("namespace", "name", null, new
XamlSchemaContext
());
176
var type = new XamlType(typeof(int), new
XamlSchemaContext
());
183
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
()) { GetXamlNamespacesResult = new string[] { "namespace1", "namespace2" } };
190
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
()) { GetXamlNamespacesResult = Array.Empty<string>() };
197
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
()) { GetXamlNamespacesResult = null };
208
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), new string[] { "namespace" } };
209
yield return new object?[] { new SubXamlType("", "name", null, new
XamlSchemaContext
()), new string[] { "" } };
210
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), new string[] { "" } };
216
new XamlType(typeof(int), new
XamlSchemaContext
()),
231
new XamlType(typeof(GlobalNamespaceClass), new
XamlSchemaContext
()),
244
new XamlType(typeof(XamlTypeTests), new
XamlSchemaContext
()),
259
new XamlType(new ReflectionOnlyType(typeof(XamlTypeTests)), new
XamlSchemaContext
()),
282
}, new
XamlSchemaContext
()),
291
var dynamicCacheContext = new
XamlSchemaContext
();
357
}, new
XamlSchemaContext
());
373
}, new
XamlSchemaContext
());
389
}, new
XamlSchemaContext
());
405
}, new
XamlSchemaContext
());
421
}, new
XamlSchemaContext
());
427
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), XamlLanguage.Key, null };
428
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), XamlLanguage.Key, null };
429
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), XamlLanguage.Key, null };
435
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
443
new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
447
new SubXamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()),
449
new XamlMember("keyName", new XamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
453
new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()),
455
new XamlMember("keyName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
459
new SubXamlType(typeof(ClassWithNullAttributes), new
XamlSchemaContext
()),
467
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
475
new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
479
new SubXamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()),
481
new XamlMember("runtimeName", new XamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
485
new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()),
487
new XamlMember("runtimeName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
491
new SubXamlType(typeof(ClassWithNullAttributes), new
XamlSchemaContext
()),
499
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
507
new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
511
new SubXamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()),
513
new XamlMember("uidName", new XamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
517
new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()),
519
new XamlMember("uidName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
523
new SubXamlType(typeof(ClassWithNullAttributes), new
XamlSchemaContext
()),
531
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
539
new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
543
new SubXamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()),
545
new XamlMember("langName", new XamlType(typeof(ClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
549
new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()),
551
new XamlMember("langName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new
XamlSchemaContext
()), false)
555
new SubXamlType(typeof(ClassWithNullAttributes), new
XamlSchemaContext
()),
563
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
575
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
587
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(int)), new
XamlSchemaContext
()),
593
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
599
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
601
LookupBaseTypeResult = new XamlType("namespace", "name", null, new
XamlSchemaContext
())
621
var type = new SubXamlType(typeof(int), new
XamlSchemaContext
());
638
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
653
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
668
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
699
}, new
XamlSchemaContext
());
726
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
727
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
728
yield return new object?[] { new SubXamlType(typeof(EmptyClass), new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
729
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
734
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
737
new XamlMember("", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new
XamlSchemaContext
()),
738
new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new
XamlSchemaContext
()),
739
new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new
XamlSchemaContext
()),
740
new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new
XamlSchemaContext
()),
741
new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new
XamlSchemaContext
()),
742
new XamlMember("Event", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new
XamlSchemaContext
()),
743
new XamlMember("GetOnlyDictionaryProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new
XamlSchemaContext
()),
744
new XamlMember("GetOnlyIntProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new
XamlSchemaContext
()),
745
new XamlMember("GetOnlyListProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new
XamlSchemaContext
()),
746
new XamlMember("GetOnlyXDataProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new
XamlSchemaContext
()),
747
new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
()),
748
new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
()),
749
new XamlMember("InternalProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
750
new XamlMember("InternalProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
751
new XamlMember("ProtectedProperty", typeof(AttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
752
new XamlMember("ProtectedProperty", typeof(AttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
753
new XamlMember("SetOnlyProperty", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new
XamlSchemaContext
()),
757
new XamlMember("", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new
XamlSchemaContext
()),
758
new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new
XamlSchemaContext
()),
759
new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new
XamlSchemaContext
()),
760
new XamlMember("Event", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new
XamlSchemaContext
()),
761
new XamlMember("GetOnlyDictionaryProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new
XamlSchemaContext
()),
762
new XamlMember("GetOnlyIntProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new
XamlSchemaContext
()),
763
new XamlMember("GetOnlyListProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new
XamlSchemaContext
()),
764
new XamlMember("GetOnlyXDataProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new
XamlSchemaContext
()),
765
new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
()),
766
new XamlMember("InternalProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
767
new XamlMember("ProtectedProperty", typeof(AttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
768
new XamlMember("SetOnlyProperty", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new
XamlSchemaContext
())
773
new SubXamlType(typeof(PrivateAttachableMembersDataClass), new
XamlSchemaContext
()),
776
new XamlMember("", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new
XamlSchemaContext
()),
777
new XamlMember("DifferentFirstParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new
XamlSchemaContext
()),
778
new XamlMember("DifferentFirstParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new
XamlSchemaContext
()),
779
new XamlMember("DifferentSecondParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new
XamlSchemaContext
()),
780
new XamlMember("DifferentSecondParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new
XamlSchemaContext
()),
781
new XamlMember("Event", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new
XamlSchemaContext
()),
782
new XamlMember("GetOnlyDictionaryProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new
XamlSchemaContext
()),
783
new XamlMember("GetOnlyIntProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new
XamlSchemaContext
()),
784
new XamlMember("GetOnlyListProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new
XamlSchemaContext
()),
785
new XamlMember("GetOnlyXDataProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new
XamlSchemaContext
()),
786
new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
()),
787
new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
()),
788
new XamlMember("InternalProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
789
new XamlMember("InternalProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
790
new XamlMember("ProtectedProperty", typeof(PrivateAttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
791
new XamlMember("ProtectedProperty", typeof(PrivateAttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
792
new XamlMember("SetOnlyProperty", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new
XamlSchemaContext
()),
796
new XamlMember("", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new
XamlSchemaContext
()),
797
new XamlMember("DifferentFirstParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new
XamlSchemaContext
()),
798
new XamlMember("DifferentSecondParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new
XamlSchemaContext
()),
799
new XamlMember("Event", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new
XamlSchemaContext
()),
800
new XamlMember("GetOnlyDictionaryProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new
XamlSchemaContext
()),
801
new XamlMember("GetOnlyIntProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new
XamlSchemaContext
()),
802
new XamlMember("GetOnlyListProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new
XamlSchemaContext
()),
803
new XamlMember("GetOnlyXDataProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new
XamlSchemaContext
()),
804
new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
()),
805
new XamlMember("InternalProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
806
new XamlMember("ProtectedProperty", typeof(PrivateAttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
807
new XamlMember("SetOnlyProperty", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new
XamlSchemaContext
())
813
new SubXamlType(typeof(DuplicateDataClass), new
XamlSchemaContext
()),
816
new XamlMember("Event", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new
XamlSchemaContext
()),
817
new XamlMember("Getter", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetGetter), new Type[] { typeof(string) }), null, new
XamlSchemaContext
()),
818
new XamlMember("InternalThenInternal", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetInternalThenInternal), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(string) }, null), null, new
XamlSchemaContext
()),
819
new XamlMember("InternalThenInternalEvent", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddInternalThenInternalEventHandler), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object), typeof(EventHandler) }, null), new
XamlSchemaContext
()),
820
new XamlMember("InternalThenPublic", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetInternalThenPublic), new Type[] { typeof(int) }), null, new
XamlSchemaContext
()),
821
new XamlMember("InternalThenPublicEvent", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddInternalThenPublicEventHandler), new Type[] { typeof(object), typeof(OtherHandler) }), new
XamlSchemaContext
()),
822
new XamlMember("PublicThenInternal", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetPublicThenInternal), new Type[] { typeof(string) }), null, new
XamlSchemaContext
()),
823
new XamlMember("PublicThenInternalEvent", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddPublicThenInternalEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new
XamlSchemaContext
()),
824
new XamlMember("Setter", null, typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.SetSetter), new Type[] { typeof(string), typeof(int) }), new
XamlSchemaContext
()),
830
new SubXamlType(typeof(PrivateDuplicateDataClass), new
XamlSchemaContext
()),
833
new XamlMember("Event", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new
XamlSchemaContext
()),
834
new XamlMember("Getter", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetGetter), new Type[] { typeof(string) }), null, new
XamlSchemaContext
()),
835
new XamlMember("InternalThenInternal", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetInternalThenInternal), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(string) }, null), null, new
XamlSchemaContext
()),
836
new XamlMember("InternalThenInternalEvent", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddInternalThenInternalEventHandler), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object), typeof(EventHandler) }, null), new
XamlSchemaContext
()),
837
new XamlMember("InternalThenPublic", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetInternalThenPublic), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(string) }, null), null, new
XamlSchemaContext
()),
838
new XamlMember("InternalThenPublicEvent", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddInternalThenPublicEventHandler), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object), typeof(EventHandler) }, null), new
XamlSchemaContext
()),
839
new XamlMember("PublicThenInternal", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetPublicThenInternal), new Type[] { typeof(string) }), null, new
XamlSchemaContext
()),
840
new XamlMember("PublicThenInternalEvent", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddPublicThenInternalEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new
XamlSchemaContext
()),
841
new XamlMember("Setter", null, typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.SetSetter), new Type[] { typeof(string), typeof(int) }), new
XamlSchemaContext
()),
847
new SubXamlType(typeof(NonMatchingInternalSetterClass), new
XamlSchemaContext
()),
850
new XamlMember("DictionaryProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetDictionaryProperty)), null, new
XamlSchemaContext
()),
851
new XamlMember("DictionaryProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetDictionaryProperty)), null, new
XamlSchemaContext
()),
852
new XamlMember("ListProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetListProperty)), null, new
XamlSchemaContext
()),
853
new XamlMember("ListProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetListProperty)), null, new
XamlSchemaContext
()),
854
new XamlMember("XDataProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetXDataProperty)), null, new
XamlSchemaContext
()),
855
new XamlMember("XDataProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetXDataProperty)), null, new
XamlSchemaContext
())
859
new XamlMember("DictionaryProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetDictionaryProperty)), null, new
XamlSchemaContext
()),
860
new XamlMember("ListProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetListProperty)), null, new
XamlSchemaContext
()),
861
new XamlMember("XDataProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetXDataProperty)), null, new
XamlSchemaContext
())
867
new SubXamlType(typeof(PrivateNonMatchingInternalSetterClass), new
XamlSchemaContext
()),
870
new XamlMember("DictionaryProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetDictionaryProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
871
new XamlMember("DictionaryProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetDictionaryProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
872
new XamlMember("IntProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetIntProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
873
new XamlMember("IntProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetIntProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
874
new XamlMember("ListProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetListProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
875
new XamlMember("ListProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetListProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
876
new XamlMember("XDataProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetXDataProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
877
new XamlMember("XDataProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetXDataProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
881
new XamlMember("DictionaryProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetDictionaryProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
882
new XamlMember("IntProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetIntProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
883
new XamlMember("ListProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetListProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
884
new XamlMember("XDataProperty", null, typeof(PrivateNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetXDataProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
890
new SubXamlType(typeof(InternalGetterNonMatchingInternalSetterClass), new
XamlSchemaContext
()),
893
new XamlMember("DictionaryProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetDictionaryProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
894
new XamlMember("DictionaryProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetDictionaryProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
895
new XamlMember("IntProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetIntProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
896
new XamlMember("IntProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetIntProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
897
new XamlMember("ListProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetListProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
898
new XamlMember("ListProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetListProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
899
new XamlMember("XDataProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetXDataProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
900
new XamlMember("XDataProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetXDataProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
904
new XamlMember("DictionaryProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetDictionaryProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
905
new XamlMember("IntProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetIntProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
906
new XamlMember("ListProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetListProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
()),
907
new XamlMember("XDataProperty", null, typeof(InternalGetterNonMatchingInternalSetterClass).GetMethod(nameof(PrivateNonMatchingInternalSetterClass.SetXDataProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
913
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
1153
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
1154
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
1155
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
1156
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), Array.Empty<XamlMember>() };
1161
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
1164
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.Property)), new
XamlSchemaContext
()),
1165
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.SetOnlyProperty)), new
XamlSchemaContext
()),
1166
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.PrivateGetProperty)), new
XamlSchemaContext
()),
1167
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.PrivateSetProperty)), new
XamlSchemaContext
()),
1168
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetOnlyListProperty)), new
XamlSchemaContext
()),
1169
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetOnlyDictionaryProperty)), new
XamlSchemaContext
()),
1170
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetXDataProperty)), new
XamlSchemaContext
()),
1171
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.InternalProperty), BindingFlags.Instance | BindingFlags.NonPublic), new
XamlSchemaContext
()),
1172
new XamlMember(typeof(MembersDataClass).GetProperty("ProtectedProperty", BindingFlags.Instance | BindingFlags.NonPublic), new
XamlSchemaContext
()),
1173
new XamlMember(typeof(MembersDataClass).GetEvent(nameof(MembersDataClass.Event)), new
XamlSchemaContext
())
1178
new SubXamlType(typeof(MoreDerivedShadowedDataClass), new
XamlSchemaContext
()),
1181
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
1182
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
1183
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetEvent(nameof(MoreDerivedShadowedDataClass.Event), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
())
1187
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
1188
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetEvent(nameof(MoreDerivedShadowedDataClass.Event), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
())
1193
new SubXamlType(typeof(PrivateMembersDataClass), new
XamlSchemaContext
()),
1211
}, new
XamlSchemaContext
()),
1214
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
1215
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
1216
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetEvent(nameof(MoreDerivedShadowedDataClass.Event), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
1217
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetEvent(nameof(MoreDerivedShadowedDataClass.Event), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
())
1221
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
1222
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetEvent(nameof(MoreDerivedShadowedDataClass.Event), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
())
1228
new CustomXamlType(typeof(MembersDataClass), new
XamlSchemaContext
())
1345
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), new XamlType?[] { null } };
1346
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), new XamlType?[] { null } };
1347
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), new XamlType?[] { null } };
1348
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), new XamlType?[] { null } };
1349
yield return new object?[] { new SubXamlType(typeof(List<int>), new
XamlSchemaContext
()), new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) } };
1355
new CustomXamlType(typeof(List<string>), new
XamlSchemaContext
())
1362
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }
1366
new CustomXamlType(typeof(List<string>), new
XamlSchemaContext
())
1373
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }
1377
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
1390
new SubXamlType(typeof(ClassWithContentPropertyContentWrapperAttribute), new
XamlSchemaContext
()),
1391
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()) }
1396
new SubXamlType(typeof(ClassWithContentWrapperAttribute), new
XamlSchemaContext
()),
1397
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }
1401
new SubXamlType(typeof(InheritedClassWithContentWrapperAttribute), new
XamlSchemaContext
()),
1402
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }
1406
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithContentWrapperAttribute)), new
XamlSchemaContext
()),
1407
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }
1411
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new
XamlSchemaContext
()),
1412
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }
1417
new CustomXamlType(typeof(ClassWithContentWrapperAttribute), new
XamlSchemaContext
())
1436
var type = new SubXamlType(typeof(ClassWithNullContentWrapperAttribute), new
XamlSchemaContext
());
1444
var type = new CustomXamlType(typeof(List<int>), new
XamlSchemaContext
())
1458
var type = new CustomXamlType(typeof(List<int>), new
XamlSchemaContext
())
1472
var type = new CustomXamlType(typeof(List<int>), new
XamlSchemaContext
())
1512
}, new
XamlSchemaContext
());
1519
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), "name", null };
1520
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), "", null };
1521
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), "name", null };
1522
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), "name", null };
1523
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), "name", null };
1529
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1531
new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
())
1535
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1537
new XamlMember("ProtectedProperty", typeof(AttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
1541
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1543
new XamlMember("InternalProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
1547
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1553
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1559
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1561
new XamlMember("GetOnlyListProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new
XamlSchemaContext
())
1565
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1567
new XamlMember("GetOnlyDictionaryProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new
XamlSchemaContext
())
1571
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1573
new XamlMember("GetOnlyXDataProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new
XamlSchemaContext
())
1577
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1579
new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new
XamlSchemaContext
())
1583
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1585
new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new
XamlSchemaContext
())
1589
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1595
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1601
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1609
new SubXamlType(typeof(PrivateAttachableMembersDataClass), new
XamlSchemaContext
()),
1611
new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(PrivateAttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(PrivateAttachableMembersDataClass.SetGetSetProperty)), new
XamlSchemaContext
())
1615
new SubXamlType(typeof(PrivateAttachableMembersDataClass), new
XamlSchemaContext
()),
1617
new XamlMember("ProtectedProperty", typeof(PrivateAttachableMembersDataClass).GetMethod("GetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod("SetProtectedProperty", BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
1621
new SubXamlType(typeof(PrivateAttachableMembersDataClass), new
XamlSchemaContext
()),
1623
new XamlMember("InternalProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(PrivateAttachableMembersDataClass.GetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(PrivateAttachableMembersDataClass.SetInternalProperty), BindingFlags.Static | BindingFlags.NonPublic), new
XamlSchemaContext
())
1627
new SubXamlType(typeof(PrivateAttachableMembersDataClass), new
XamlSchemaContext
()),
1635
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1637
new XamlMember("Event", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new
XamlSchemaContext
())
1641
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1647
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1653
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1659
new SubXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
()),
1666
new CustomXamlType(typeof(AttachableMembersDataClass), new
XamlSchemaContext
())
1686
var type = new SubXamlType(typeof(int), new
XamlSchemaContext
());
1701
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), XamlLanguage.Object };
1702
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), XamlLanguage.Object };
1705
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(ValueType), new
XamlSchemaContext
()) };
1706
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
1707
yield return new object?[] { new SubXamlType(typeof(IConvertible), new
XamlSchemaContext
()), null };
1723
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
1741
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), XamlCollectionKind.None };
1742
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), XamlCollectionKind.None };
1745
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), XamlCollectionKind.None };
1746
yield return new object?[] { new SubXamlType(typeof(int[]), new
XamlSchemaContext
()), XamlCollectionKind.Array };
1747
yield return new object?[] { new SubXamlType(typeof(IEnumerable), new
XamlSchemaContext
()), XamlCollectionKind.None };
1748
yield return new object?[] { new SubXamlType(typeof(IEnumerable<int>), new
XamlSchemaContext
()), XamlCollectionKind.None };
1749
yield return new object?[] { new SubXamlType(typeof(ICollection), new
XamlSchemaContext
()), XamlCollectionKind.None };
1750
yield return new object?[] { new SubXamlType(typeof(ICollection<int>), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1751
yield return new object?[] { new SubXamlType(typeof(IList), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1752
yield return new object?[] { new SubXamlType(typeof(IList<int>), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1753
yield return new object?[] { new SubXamlType(typeof(IDictionary), new
XamlSchemaContext
()), XamlCollectionKind.Dictionary };
1754
yield return new object?[] { new SubXamlType(typeof(IDictionary<int, int>), new
XamlSchemaContext
()), XamlCollectionKind.Dictionary };
1755
yield return new object?[] { new SubXamlType(typeof(Collection<int>), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1756
yield return new object?[] { new SubXamlType(typeof(List<int>), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1757
yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1758
yield return new object?[] { new SubXamlType(typeof(InvalidReturnGetEnumeratorClass), new
XamlSchemaContext
()), XamlCollectionKind.None };
1759
yield return new object?[] { new SubXamlType(typeof(InvalidParametersGetEnumeratorClass), new
XamlSchemaContext
()), XamlCollectionKind.None };
1760
yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1761
yield return new object?[] { new SubXamlType(typeof(ICollectionImplementer), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1762
yield return new object?[] { new SubXamlType(typeof(InternalICollectionImplementer), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1763
yield return new object?[] { new SubXamlType(typeof(MoreThanOneICollectionImplementer), new
XamlSchemaContext
()), XamlCollectionKind.Collection };
1764
yield return new object?[] { new SubXamlType(typeof(PrivateICollectionImplementer), new
XamlSchemaContext
()), XamlCollectionKind.None };
1765
yield return new object?[] { new SubXamlType(typeof(ProtectedICollectionImplementer), new
XamlSchemaContext
()), XamlCollectionKind.None };
1766
yield return new object?[] { new SubXamlType(typeof(Dictionary<int, int>), new
XamlSchemaContext
()), XamlCollectionKind.Dictionary };
1767
yield return new object?[] { new SubXamlType(typeof(IDictionaryImplementer), new
XamlSchemaContext
()), XamlCollectionKind.Dictionary };
1768
yield return new object?[] { new SubXamlType(typeof(InternalIDictionaryImplementer), new
XamlSchemaContext
()), XamlCollectionKind.Dictionary };
1769
yield return new object?[] { new SubXamlType(typeof(MoreThanOneIDictionaryImplementer), new
XamlSchemaContext
()), XamlCollectionKind.Dictionary };
1770
yield return new object?[] { new SubXamlType(typeof(PrivateIDictionaryImplementer), new
XamlSchemaContext
()), XamlCollectionKind.None };
1771
yield return new object?[] { new SubXamlType(typeof(ProtectedIDictionaryImplementer), new
XamlSchemaContext
()), XamlCollectionKind.None };
1781
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
1906
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
1907
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false };
1910
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
1911
yield return new object[] { new SubXamlType(typeof(ClassWithDefaultConstructor), new
XamlSchemaContext
()), false };
1912
yield return new object[] { new SubXamlType(typeof(AbstractClass), new
XamlSchemaContext
()), true };
1913
yield return new object[] { new SubXamlType(typeof(IConvertible), new
XamlSchemaContext
()), true };
1914
yield return new object[] { new SubXamlType(typeof(NestedClass), new
XamlSchemaContext
()), false };
1915
yield return new object[] { new SubXamlType(typeof(ClassWithInternalDefaultConstructor), new
XamlSchemaContext
()), false };
1916
yield return new object[] { new SubXamlType(typeof(ClassWithProtectedDefaultConstructor), new
XamlSchemaContext
()), true };
1917
yield return new object[] { new SubXamlType(typeof(ClassWithPrivateDefaultConstructor), new
XamlSchemaContext
()), true };
1918
yield return new object[] { new SubXamlType(typeof(ClassWithCustomConstructor), new
XamlSchemaContext
()), true };
1919
yield return new object[] { new SubXamlType(typeof(StaticClass), new
XamlSchemaContext
()), true };
1923
new CustomXamlType(typeof(ClassWithCustomConstructor), new
XamlSchemaContext
())
1941
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
1942
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
1943
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
1944
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
1950
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
1957
new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)
1961
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
1972
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
1985
new SubXamlType(typeof(ClassWithKnownContentPropertyAttribute), new
XamlSchemaContext
()),
1986
new XamlMember(typeof(ClassWithKnownContentPropertyAttribute).GetProperty(nameof(ClassWithKnownContentPropertyAttribute.Name)), new
XamlSchemaContext
())
1990
new SubXamlType(typeof(ClassWithUnknownContentPropertyAttribute), new
XamlSchemaContext
()),
1991
new XamlMember("name", new XamlType(typeof(ClassWithUnknownContentPropertyAttribute), new
XamlSchemaContext
()), false)
1995
new SubXamlType(typeof(InheritedClassWithContentPropertyAttribute), new
XamlSchemaContext
()),
1996
new XamlMember(typeof(ClassWithKnownContentPropertyAttribute).GetProperty(nameof(ClassWithKnownContentPropertyAttribute.Name)), new
XamlSchemaContext
())
2000
new SubXamlType(typeof(ClassWithNullContentPropertyAttribute), new
XamlSchemaContext
()),
2005
new SubXamlType(typeof(ClassWithDefaultContentPropertyAttribute), new
XamlSchemaContext
()),
2010
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUnknownContentPropertyAttribute)), new
XamlSchemaContext
()),
2011
new XamlMember("name", new XamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUnknownContentPropertyAttribute)), new
XamlSchemaContext
()), false)
2015
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
2020
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2022
LookupBaseTypeResult = new XamlType("namespace", "name", null, new
XamlSchemaContext
())
2029
new CustomXamlType(typeof(ClassWithUnknownContentPropertyAttribute), new
XamlSchemaContext
())
2048
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2062
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2076
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2107
}, new
XamlSchemaContext
());
2139
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
2140
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
2141
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
2142
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
2143
yield return new object?[] { new SubXamlType(typeof(List<int>), new
XamlSchemaContext
()), null };
2149
new CustomXamlType(typeof(List<string>), new
XamlSchemaContext
())
2156
new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }
2160
new CustomXamlType(typeof(List<string>), new
XamlSchemaContext
())
2171
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
2184
new SubXamlType(typeof(ClassWithContentWrapperAttribute), new
XamlSchemaContext
()),
2185
new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }
2189
new SubXamlType(typeof(InheritedClassWithContentWrapperAttribute), new
XamlSchemaContext
()),
2190
new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()) }
2194
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithContentWrapperAttribute)), new
XamlSchemaContext
()),
2195
new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }
2199
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new
XamlSchemaContext
()),
2205
new CustomXamlType(typeof(ClassWithContentWrapperAttribute), new
XamlSchemaContext
())
2224
var type = new SubXamlType(typeof(ClassWithNullContentWrapperAttribute), new
XamlSchemaContext
());
2232
var type = new CustomXamlType(typeof(List<int>), new
XamlSchemaContext
())
2246
var type = new CustomXamlType(typeof(List<int>), new
XamlSchemaContext
())
2260
var type = new CustomXamlType(typeof(List<int>), new
XamlSchemaContext
())
2291
}, new
XamlSchemaContext
());
2314
var type = new SubXamlType(typeof(int), new
XamlSchemaContext
());
2321
var type = new SubXamlType("namespace", "name", null, new
XamlSchemaContext
());
2327
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
2328
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
2329
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
2330
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
2336
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2347
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2358
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
2371
new SubXamlType(typeof(ClassWithTypeXamlDeferLoadAttribute), new
XamlSchemaContext
()),
2376
new SubXamlType(typeof(InheritedClassWithTypeXamlDeferLoadAttribute), new
XamlSchemaContext
()),
2381
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringXamlDeferLoadAttribute)), new
XamlSchemaContext
()),
2386
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
2392
new CustomXamlType(typeof(ClassWithTypeXamlDeferLoadAttribute), new
XamlSchemaContext
())
2411
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2425
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2439
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2470
}, new
XamlSchemaContext
());
2483
var type = new SubXamlType(underlyingType, new
XamlSchemaContext
());
2493
var type = new SubXamlType(underlyingType, new
XamlSchemaContext
());
2545
var type = new SubXamlType("namespace", "name", null, new
XamlSchemaContext
());
2553
var type = new SubXamlType(typeof(int), new
XamlSchemaContext
());
2561
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2571
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
2572
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false };
2573
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
2574
yield return new object[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), false };
2580
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2591
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
2604
new SubXamlType(typeof(ClassWithAmbientAttribute), new
XamlSchemaContext
()),
2609
new SubXamlType(typeof(InheritedClassWithAmbientAttribute), new
XamlSchemaContext
()),
2614
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithAmbientAttribute)), new
XamlSchemaContext
()),
2619
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
2625
new CustomXamlType(typeof(ClassWithAmbientAttribute), new
XamlSchemaContext
())
2652
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), true };
2653
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), true };
2656
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), true };
2657
yield return new object[] { new SubXamlType(typeof(AbstractClass), new
XamlSchemaContext
()), false };
2658
yield return new object[] { new SubXamlType(typeof(IConvertible), new
XamlSchemaContext
()), false };
2659
yield return new object[] { new SubXamlType(typeof(NestedClass), new
XamlSchemaContext
()), false };
2660
yield return new object[] { new SubXamlType(typeof(List<>), new
XamlSchemaContext
()), false };
2661
yield return new object[] { new SubXamlType(typeof(List<>).GetTypeInfo().GenericTypeParameters[0], new
XamlSchemaContext
()), false };
2662
yield return new object[] { new SubXamlType(typeof(List<int>), new
XamlSchemaContext
()), true };
2663
yield return new object[] { new SubXamlType(typeof(ClassWithDefaultConstructor), new
XamlSchemaContext
()), true };
2664
yield return new object[] { new SubXamlType(typeof(ClassWithInternalDefaultConstructor), new
XamlSchemaContext
()), true };
2665
yield return new object[] { new SubXamlType(typeof(ClassWithProtectedDefaultConstructor), new
XamlSchemaContext
()), false };
2666
yield return new object[] { new SubXamlType(typeof(ClassWithPrivateDefaultConstructor), new
XamlSchemaContext
()), false };
2667
yield return new object[] { new SubXamlType(typeof(ClassWithCustomConstructor), new
XamlSchemaContext
()), true };
2668
yield return new object[] { new SubXamlType(typeof(StaticClass), new
XamlSchemaContext
()), false };
2672
new CustomXamlType(typeof(ClassWithCustomConstructor), new
XamlSchemaContext
())
2690
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
2691
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false };
2694
yield return new object[] { new SubXamlType(typeof(MarkupExtension), new
XamlSchemaContext
()), true };
2695
yield return new object[] { new SubXamlType(typeof(ArrayExtension), new
XamlSchemaContext
()), true };
2696
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
2700
new CustomXamlType(typeof(MarkupExtension), new
XamlSchemaContext
())
2718
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
2719
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false };
2722
yield return new object?[] { new SubXamlType(typeof(INameScope), new
XamlSchemaContext
()), true };
2723
yield return new object?[] { new SubXamlType(typeof(INameScopeDictionary), new
XamlSchemaContext
()), true };
2724
yield return new object?[] { new SubXamlType(typeof(CustomNameScope), new
XamlSchemaContext
()), true };
2725
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
2729
new CustomXamlType(typeof(INameScope), new
XamlSchemaContext
())
2775
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), true };
2776
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), true };
2779
yield return new object[] { new SubXamlType(typeof(int?), new
XamlSchemaContext
()), true };
2780
yield return new object[] { new SubXamlType(typeof(System.Nullable<>), new
XamlSchemaContext
()), true };
2781
yield return new object[] { new SubXamlType(typeof(Nullable<int>), new
XamlSchemaContext
()), false };
2782
yield return new object[] { new SubXamlType(typeof(Generic<int>), new
XamlSchemaContext
()), false };
2783
yield return new object[] { new SubXamlType(typeof(KeyValuePair<int, string>), new
XamlSchemaContext
()), false };
2784
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
2785
yield return new object[] { new SubXamlType(typeof(string), new
XamlSchemaContext
()), true };
2786
yield return new object[] { new SubXamlType(typeof(List<int>), new
XamlSchemaContext
()), true };
2796
new
XamlSchemaContext
()), false
2801
new CustomXamlType(typeof(int?), new
XamlSchemaContext
())
2822
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), true };
2823
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), true };
2826
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), true };
2827
yield return new object[] { new SubXamlType(typeof(Generic<>), new
XamlSchemaContext
()), false };
2831
new CustomXamlType(typeof(INameScope), new
XamlSchemaContext
())
2849
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), true, true };
2850
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), true, true };
2853
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false, false };
2857
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2875
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false, true };
2876
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false, true };
2877
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false, false };
2878
yield return new object[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), false, false };
2884
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
2895
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
2908
new SubXamlType(typeof(ClassWithWhitespaceSignificantCollectionAttribute), new
XamlSchemaContext
()),
2913
new SubXamlType(typeof(InheritedClassWithWhitespaceSignificantCollectionAttribute), new
XamlSchemaContext
()),
2918
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithWhitespaceSignificantCollectionAttribute)), new
XamlSchemaContext
()),
2923
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
2929
new CustomXamlType(typeof(ClassWithWhitespaceSignificantCollectionAttribute), new
XamlSchemaContext
())
2956
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
2957
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false };
2960
yield return new object[] { new SubXamlType(typeof(IXmlSerializable), new
XamlSchemaContext
()), true };
2961
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
2965
new CustomXamlType(typeof(IXmlSerializable), new
XamlSchemaContext
())
2983
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
2984
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
2985
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
2986
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
2989
yield return new object?[] { new SubXamlType(typeof(int[]), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()) };
2990
yield return new object?[] { new SubXamlType(typeof(IList), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
2991
yield return new object?[] { new SubXamlType(typeof(List<int>), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()) };
2992
yield return new object?[] { new SubXamlType(typeof(AmbiguousIList), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
2993
yield return new object?[] { new SubXamlType(typeof(AmbiguousICollection), new
XamlSchemaContext
()), null };
2994
yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
2995
yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
2996
yield return new object?[] { new SubXamlType(typeof(IDictionary), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
2997
yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new
XamlSchemaContext
()), new XamlType(typeof(string), new
XamlSchemaContext
()) };
2998
yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
3002
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3004
LookupBaseTypeResult = new XamlType("namespace", "name", null, new
XamlSchemaContext
())
3010
new CustomXamlType(typeof(List<int>), new
XamlSchemaContext
())
3031
var type = new SubXamlType(underlyingType, new
XamlSchemaContext
());
3038
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
3039
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
3040
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
3041
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
3044
yield return new object?[] { new SubXamlType(typeof(int[]), new
XamlSchemaContext
()), null };
3045
yield return new object?[] { new SubXamlType(typeof(IList), new
XamlSchemaContext
()), null };
3046
yield return new object?[] { new SubXamlType(typeof(List<int>), new
XamlSchemaContext
()), null };
3047
yield return new object?[] { new SubXamlType(typeof(AmbiguousIList), new
XamlSchemaContext
()), null };
3048
yield return new object?[] { new SubXamlType(typeof(AmbiguousICollection), new
XamlSchemaContext
()), null };
3049
yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new
XamlSchemaContext
()), null };
3050
yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new
XamlSchemaContext
()), null };
3051
yield return new object?[] { new SubXamlType(typeof(IDictionary), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
3052
yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()) };
3053
yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()) };
3057
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3059
LookupBaseTypeResult = new XamlType("namespace", "name", null, new
XamlSchemaContext
())
3065
new CustomXamlType(typeof(Dictionary<int, string>), new
XamlSchemaContext
())
3086
var type = new SubXamlType(underlyingType, new
XamlSchemaContext
());
3289
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
3290
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
3291
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
3292
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
3293
yield return new object?[] { new SubXamlType(typeof(MarkupExtension), new
XamlSchemaContext
()), null };
3299
new CustomXamlType(typeof(MarkupExtension), new
XamlSchemaContext
())
3306
new XamlType(typeof(int), new
XamlSchemaContext
())
3310
new CustomXamlType(typeof(MarkupExtension), new
XamlSchemaContext
())
3321
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
3334
new SubXamlType(typeof(ClassWithMarkupExtensionReturnTypeAttribute), new
XamlSchemaContext
()),
3335
new XamlType(typeof(int), new
XamlSchemaContext
())
3339
new SubXamlType(typeof(InheritedClassWithMarkupExtensionReturnTypeAttribute), new
XamlSchemaContext
()),
3340
new XamlType(typeof(int), new
XamlSchemaContext
())
3344
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithMarkupExtensionReturnTypeAttribute)), new
XamlSchemaContext
()),
3345
new XamlType(typeof(int), new
XamlSchemaContext
())
3349
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(MarkupExtension)), new
XamlSchemaContext
()),
3355
new CustomXamlType(typeof(ClassWithMarkupExtensionReturnTypeAttribute), new
XamlSchemaContext
())
3374
var type = new SubXamlType(typeof(ClassWithNullMarkupExtensionReturnTypeAttribute), new
XamlSchemaContext
());
3382
var type = new CustomXamlType(typeof(MarkupExtension), new
XamlSchemaContext
())
3396
var type = new CustomXamlType(typeof(MarkupExtension), new
XamlSchemaContext
())
3410
var type = new CustomXamlType(typeof(MarkupExtension), new
XamlSchemaContext
())
3453
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), "name", false, null, null };
3454
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), "", true, null, null };
3455
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), "name", false, null, null };
3456
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), "name", false, null, null };
3457
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), "name", false, null, null };
3466
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3468
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.Property)), new
XamlSchemaContext
()),
3469
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.Property)), new
XamlSchemaContext
())
3473
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3475
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetOnlyListProperty)), new
XamlSchemaContext
()),
3476
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetOnlyListProperty)), new
XamlSchemaContext
())
3480
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3482
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetOnlyDictionaryProperty)), new
XamlSchemaContext
()),
3483
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetOnlyDictionaryProperty)), new
XamlSchemaContext
())
3487
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3489
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetXDataProperty)), new
XamlSchemaContext
()),
3490
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetXDataProperty)), new
XamlSchemaContext
())
3494
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3496
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.SetOnlyProperty)), new
XamlSchemaContext
()),
3497
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.SetOnlyProperty)), new
XamlSchemaContext
())
3501
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3503
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.PrivateGetProperty)), new
XamlSchemaContext
()),
3504
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.PrivateGetProperty)), new
XamlSchemaContext
())
3508
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3510
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.PrivateSetProperty)), new
XamlSchemaContext
()),
3511
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.PrivateSetProperty)), new
XamlSchemaContext
())
3515
new SubXamlType(typeof(MoreDerivedShadowedDataClass), new
XamlSchemaContext
()),
3517
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly)!, new
XamlSchemaContext
()),
3518
new XamlMember(typeof(MoreDerivedShadowedDataClass).GetProperty(nameof(MoreDerivedShadowedDataClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly)!, new
XamlSchemaContext
())
3530
}, new
XamlSchemaContext
()),
3532
new XamlMember(typeof(EvenMoreDerivedShadowedBaseClass).GetProperty(nameof(EvenMoreDerivedShadowedBaseClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly)!, new
XamlSchemaContext
()),
3533
new XamlMember(typeof(EvenMoreDerivedShadowedBaseClass).GetProperty(nameof(EvenMoreDerivedShadowedBaseClass.Property), BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly)!, new
XamlSchemaContext
())
3545
}, new
XamlSchemaContext
()),
3547
new XamlMember(typeof(EvenMoreDerivedShadowedBaseClass).GetProperty(nameof(EvenMoreDerivedShadowedBaseClass.Property)!, BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
()),
3548
new XamlMember(typeof(EvenMoreDerivedShadowedBaseClass).GetProperty(nameof(EvenMoreDerivedShadowedBaseClass.Property)!, BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly), new
XamlSchemaContext
())
3552
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3559
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3561
new XamlMember(typeof(MembersDataClass).GetProperty("ProtectedProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
3562
new XamlMember(typeof(MembersDataClass).GetProperty("ProtectedProperty", BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
())
3566
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3568
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.InternalProperty), BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
()),
3569
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.InternalProperty), BindingFlags.Instance | BindingFlags.NonPublic)!, new
XamlSchemaContext
())
3573
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3580
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3587
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3596
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3603
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3605
new XamlMember(typeof(MembersDataClass).GetProperty(nameof(MembersDataClass.GetOnlyProperty))!, new
XamlSchemaContext
()),
3614
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3616
new XamlMember(typeof(MembersDataClass).GetEvent(nameof(MembersDataClass.Event))!, new
XamlSchemaContext
()),
3617
new XamlMember(typeof(MembersDataClass).GetEvent(nameof(MembersDataClass.Event))!, new
XamlSchemaContext
())
3621
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3628
new SubXamlType(typeof(MembersDataClass), new
XamlSchemaContext
()),
3637
new CustomXamlType(typeof(MembersDataClass), new
XamlSchemaContext
())
3658
var type = new SubXamlType(typeof(int), new
XamlSchemaContext
());
3673
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), 1, null };
3674
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), 1, null };
3675
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), 1, null };
3676
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), -1, null };
3677
yield return new object?[] { new SubXamlType(typeof(MarkupExtension), new
XamlSchemaContext
()), 1, null };
3680
yield return new object?[] { new SubXamlType(typeof(ClassWithCustomConstructor), new
XamlSchemaContext
()), 1, new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) } };
3682
yield return new object?[] { new SubXamlType(typeof(TypeExtension), new
XamlSchemaContext
()), 2, null };
3683
yield return new object?[] { new SubXamlType(typeof(TypeExtension), new
XamlSchemaContext
()), 1, new XamlType[] { new XamlType(typeof(Type), new
XamlSchemaContext
()) } };
3684
yield return new object?[] { new SubXamlType(typeof(TypeExtension), new
XamlSchemaContext
()), 0, null };
3685
yield return new object?[] { new SubXamlType(typeof(TypeExtension), new
XamlSchemaContext
()), -1, null };
3689
yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 1, new XamlType[] { new XamlType(typeof(Type), new
XamlSchemaContext
()) } };
3695
new CustomXamlType(typeof(ArrayExtension), new
XamlSchemaContext
())
3717
var type = new SubXamlType(underlyingType, new
XamlSchemaContext
());
3724
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
3725
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
3726
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
3727
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
3733
new CustomXamlType(typeof(ClassWithXamlSetMarkupExtensionEventArgsDelegate), new
XamlSchemaContext
())
3744
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3755
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
3768
new SubXamlType(typeof(ClassWithXamlSetMarkupExtensionAttribute), new
XamlSchemaContext
()),
3773
new SubXamlType(typeof(InheritedClassWithXamlSetMarkupExtensionAttribute), new
XamlSchemaContext
()),
3778
new SubXamlType(typeof(ClassWithNullXamlSetMarkupExtensionAttribute), new
XamlSchemaContext
()),
3783
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
3789
new CustomXamlType(typeof(ClassWithXamlSetMarkupExtensionAttribute), new
XamlSchemaContext
())
3797
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3799
LookupBaseTypeResult = new XamlType("namespace", "name", null, new
XamlSchemaContext
())
3815
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3828
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3841
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3871
}, new
XamlSchemaContext
());
3878
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3891
var type = new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetMarkupExtensionAttribute)), new
XamlSchemaContext
());
3923
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
3924
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
3925
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), null };
3926
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
3932
new CustomXamlType(typeof(ClassWithXamlSetTypeConverterEventArgsDelegate), new
XamlSchemaContext
())
3943
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3954
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
3967
new SubXamlType(typeof(ClassWithXamlSetTypeConverterAttribute), new
XamlSchemaContext
()),
3972
new SubXamlType(typeof(InheritedClassWithXamlSetTypeConverterAttribute), new
XamlSchemaContext
()),
3977
new SubXamlType(typeof(ClassWithNullXamlSetTypeConverterAttribute), new
XamlSchemaContext
()),
3982
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
3988
new CustomXamlType(typeof(ClassWithXamlSetTypeConverterAttribute), new
XamlSchemaContext
())
3996
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
3998
LookupBaseTypeResult = new XamlType("namespace", "name", null, new
XamlSchemaContext
())
4014
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4027
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4040
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4070
}, new
XamlSchemaContext
());
4077
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4090
var type = new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetTypeConverterAttribute)), new
XamlSchemaContext
());
4122
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
4123
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false };
4124
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
4125
yield return new object[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), false };
4131
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4142
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
4155
new SubXamlType(typeof(ClassWithTrimSurroundingWhitespaceAttribute), new
XamlSchemaContext
()),
4160
new SubXamlType(typeof(InheritedClassWithTrimSurroundingWhitespaceAttribute), new
XamlSchemaContext
()),
4165
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithTrimSurroundingWhitespaceAttribute)), new
XamlSchemaContext
()),
4170
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
4176
new CustomXamlType(typeof(ClassWithTrimSurroundingWhitespaceAttribute), new
XamlSchemaContext
())
4203
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
4204
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
4205
yield return new object?[] { new SubXamlType(typeof(byte), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(ByteConverter), null) };
4206
yield return new object?[] { new SubXamlType(typeof(sbyte), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(SByteConverter), null) };
4207
yield return new object?[] { new SubXamlType(typeof(ushort), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(UInt16Converter), null) };
4208
yield return new object?[] { new SubXamlType(typeof(short), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(Int16Converter), null) };
4209
yield return new object?[] { new SubXamlType(typeof(uint), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(UInt32Converter), null) };
4210
yield return new object?[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(Int32Converter), null) };
4211
yield return new object?[] { new SubXamlType(typeof(ulong), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(UInt64Converter), null) };
4212
yield return new object?[] { new SubXamlType(typeof(long), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(Int64Converter), null) };
4213
yield return new object?[] { new SubXamlType(typeof(char), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(CharConverter), null) };
4214
yield return new object?[] { new SubXamlType(typeof(bool), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(BooleanConverter), null) };
4215
yield return new object?[] { new SubXamlType(typeof(float), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(SingleConverter), null) };
4216
yield return new object?[] { new SubXamlType(typeof(double), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(DoubleConverter), null) };
4217
yield return new object?[] { new SubXamlType(typeof(decimal), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(DecimalConverter), null) };
4218
yield return new object?[] { new SubXamlType(typeof(string), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(StringConverter), null) };
4219
yield return new object?[] { new SubXamlType(typeof(TimeSpan), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(TimeSpanConverter), null) };
4220
yield return new object?[] { new SubXamlType(typeof(Guid), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(GuidConverter), null) };
4221
yield return new object?[] { new SubXamlType(typeof(CultureInfo), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(CultureInfoConverter), null) };
4222
yield return new object?[] { new SubXamlType(typeof(ConsoleColor), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(EnumConverter), new XamlType(typeof(ConsoleColor), new
XamlSchemaContext
())) };
4223
yield return new object?[] { new SubXamlType(typeof(int?), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(typeof(Int32Converter), null) };
4224
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object) };
4230
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4241
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4252
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
4265
new SubXamlType(typeof(ClassWithTypeConverterAttribute), new
XamlSchemaContext
()),
4270
new SubXamlType(typeof(StructWithTypeConverterAttribute?), new
XamlSchemaContext
()),
4275
new SubXamlType(typeof(InheritedClassWithTypeConverterAttribute), new
XamlSchemaContext
()),
4280
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringTypeConverterAttribute)), new
XamlSchemaContext
()),
4285
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
4291
new CustomXamlType(typeof(ClassWithTypeConverterAttribute), new
XamlSchemaContext
())
4310
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4324
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4338
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4369
}, new
XamlSchemaContext
());
4379
var type = new SubXamlType(underlyingType, new
XamlSchemaContext
());
4387
var type = new SubXamlType(typeof(ClassWithNullStringTypeConverterAttribute), new
XamlSchemaContext
());
4429
var type = new SubXamlType("namespace", "name", null, new
XamlSchemaContext
());
4437
var type = new SubXamlType(typeof(int), new
XamlSchemaContext
());
4445
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4455
yield return new object[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
4456
yield return new object[] { new SubXamlType("name", null, new
XamlSchemaContext
()), false };
4457
yield return new object[] { new SubXamlType(typeof(int), new
XamlSchemaContext
()), false };
4458
yield return new object[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), false };
4459
yield return new object[] { new SubXamlType(typeof(MarkupExtension), new
XamlSchemaContext
()), false };
4465
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4476
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4487
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
4500
new SubXamlType(typeof(ClassWithUsableDuringInitializationAttribute), new
XamlSchemaContext
()),
4505
new SubXamlType(typeof(InheritedClassWithUsableDuringInitializationAttribute), new
XamlSchemaContext
()),
4510
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUsableDuringInitializationAttribute)), new
XamlSchemaContext
()),
4515
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
4521
new CustomXamlType(typeof(ClassWithUsableDuringInitializationAttribute), new
XamlSchemaContext
())
4540
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4554
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4568
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4582
var type = new CustomXamlType(typeof(MarkupExtension), new
XamlSchemaContext
())
4610
}, new
XamlSchemaContext
());
4627
yield return new object?[] { new SubXamlType("namespace", "name", null, new
XamlSchemaContext
()), null };
4628
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), null };
4630
yield return new object?[] { new SubXamlType(typeof(int?), new
XamlSchemaContext
()), null };
4631
yield return new object?[] { new SubXamlType(typeof(string), new
XamlSchemaContext
()), new XamlValueConverter<ValueSerializer>(ValueSerializer.GetSerializerFor(typeof(string))!.GetType(), null) };
4632
yield return new object?[] { new SubXamlType(typeof(object), new
XamlSchemaContext
()), null };
4638
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4649
new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4660
new CustomXamlType("namespace", "name", null, new
XamlSchemaContext
())
4673
new SubXamlType(typeof(ClassWithValueSerializerAttribute), new
XamlSchemaContext
()),
4678
new SubXamlType(typeof(StructWithValueSerializerAttribute?), new
XamlSchemaContext
()),
4683
new SubXamlType(typeof(InheritedClassWithValueSerializerAttribute), new
XamlSchemaContext
()),
4688
new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringValueSerializerAttribute)), new
XamlSchemaContext
()),
4693
new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new
XamlSchemaContext
()),
4699
new CustomXamlType(typeof(ClassWithValueSerializerAttribute), new
XamlSchemaContext
())
4718
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4732
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4746
var type = new CustomXamlType(typeof(int), new
XamlSchemaContext
())
4777
}, new
XamlSchemaContext
());
4785
var type = new SubXamlType(typeof(ClassWithNullValueSerializerAttribute), new
XamlSchemaContext
());
4793
var type = new SubXamlType(typeof(ClassWithNullStringValueSerializerAttribute), new
XamlSchemaContext
());
4830
yield return new object?[] { new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()), true };
4831
yield return new object?[] { new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(object), new
XamlSchemaContext
()), true };
4832
yield return new object?[] { new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(string), new
XamlSchemaContext
()), false };
4833
yield return new object?[] { new XamlType(typeof(SubXamlType), new
XamlSchemaContext
()), new XamlType(typeof(XamlType), new
XamlSchemaContext
()), true };
4834
yield return new object?[] { new XamlType(typeof(XamlType), new
XamlSchemaContext
()), new XamlType(typeof(SubXamlType), new
XamlSchemaContext
()), false };
4835
yield return new object?[] { new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType("unknownTypeNamespace", "unknownType", null, new
XamlSchemaContext
()), false };
4836
yield return new object?[] { new XamlType(typeof(int), new
XamlSchemaContext
()), null, false };
4839
yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new
XamlSchemaContext
()), new XamlType("unknownTypeNamespace", "unknownType", null, new
XamlSchemaContext
()), true };
4840
yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new
XamlSchemaContext
()), new XamlType("otherTypeNamespace", "unknownType", null, new
XamlSchemaContext
()), false };
4841
yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()), false };
4842
yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new
XamlSchemaContext
()), null, false };
4847
new XamlType(new ReflectionOnlyType(typeof(XamlType)), new
XamlSchemaContext
()),
4848
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4853
new XamlType(new ReflectionOnlyType(typeof(XamlType)), new
XamlSchemaContext
()),
4854
new XamlType(typeof(XamlSchemaContext), new
XamlSchemaContext
()),
4859
new XamlType(new ReflectionOnlyType(typeof(int)), new
XamlSchemaContext
()),
4860
new XamlType(typeof(XamlSchemaContext), new
XamlSchemaContext
()),
4865
new XamlType(new ReflectionOnlyType(typeof(XamlObjectWriterSettings)), new
XamlSchemaContext
()),
4866
new XamlType(typeof(XamlWriterSettings), new
XamlSchemaContext
()),
4871
new XamlType(new ReflectionOnlyType(typeof(XamlWriterSettings)), new
XamlSchemaContext
()),
4872
new XamlType(typeof(XamlObjectWriterSettings), new
XamlSchemaContext
()),
4886
new XamlType(differentVersionType, new
XamlSchemaContext
()),
4887
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4899
new XamlType(differentCultureType, new
XamlSchemaContext
()),
4900
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4912
new XamlType(differentPublicKeyTokenType, new
XamlSchemaContext
()),
4913
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4927
new XamlType(windowsBaseType, new
XamlSchemaContext
()),
4928
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4941
new XamlType(invalidWindowsBaseType, new
XamlSchemaContext
()),
4942
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4957
new XamlType(invalidKeyTokenWindowsBaseType, new
XamlSchemaContext
()),
4958
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4965
new XamlType(new ReflectionOnlyType(typeof(int)), new
XamlSchemaContext
()),
4966
new XamlType(typeof(XamlType), new
XamlSchemaContext
()),
4973
new XamlType(new ReflectionOnlyType(typeof(CustomNameScope)), new
XamlSchemaContext
()),
4974
new XamlType(typeof(INameScope), new
XamlSchemaContext
()),
4979
new XamlType(new ReflectionOnlyType(typeof(CustomNameScopeDictionary)), new
XamlSchemaContext
()),
4980
new XamlType(typeof(INameScope), new
XamlSchemaContext
()),
4985
new XamlType(new ReflectionOnlyType(typeof(XamlType)), new
XamlSchemaContext
()),
4986
new XamlType(typeof(INameScope), new
XamlSchemaContext
()),
4991
new XamlType(new ReflectionOnlyType(typeof(int)), new
XamlSchemaContext
()),
4992
new XamlType(typeof(INameScope), new
XamlSchemaContext
()),
4997
new XamlType(new ReflectionOnlyType(typeof(INameScope)), new
XamlSchemaContext
()),
4998
new XamlType(typeof(INameScope), new
XamlSchemaContext
()),
5003
new XamlType(new ReflectionOnlyType(typeof(INameScope)), new
XamlSchemaContext
()),
5004
new XamlType(typeof(INameScopeDictionary), new
XamlSchemaContext
()),
5009
new XamlType(new ReflectionOnlyType(typeof(INameScopeDictionary)), new
XamlSchemaContext
()),
5010
new XamlType(typeof(INameScope), new
XamlSchemaContext
()),
5020
new XamlType(nullInterface, new
XamlSchemaContext
()),
5021
new XamlType(typeof(INameScope), new
XamlSchemaContext
()),
5029
new XamlType(new ReflectionOnlyType(typeof(int)), new
XamlSchemaContext
()),
5030
new XamlType(genericTypeParameter, new
XamlSchemaContext
()),
5040
new XamlType(new ReflectionOnlyType(typeof(int)), new
XamlSchemaContext
()),
5041
new XamlType(nullConstrainedGenericParameter, new
XamlSchemaContext
()),
5051
new XamlType(new ReflectionOnlyType(typeof(XamlObjectWriterSettings)), new
XamlSchemaContext
()),
5052
new XamlType(constrainedGenericParameter, new
XamlSchemaContext
()),
5058
new XamlType(new ReflectionOnlyType(typeof(XamlWriterSettings)), new
XamlSchemaContext
()),
5059
new XamlType(constrainedGenericParameter, new
XamlSchemaContext
()),
5067
new XamlType(new ReflectionOnlyType(typeof(XamlType)), new
XamlSchemaContext
()),
5068
new XamlType(new InconsistentNameTypeDelegator(typeof(XamlType)), new
XamlSchemaContext
()),
5082
var type = new XamlType(typeof(int), new
XamlSchemaContext
());
5084
yield return new object?[] { type, new XamlType(typeof(int), new
XamlSchemaContext
()), true };
5085
yield return new object?[] { type, new XamlType(typeof(string), new
XamlSchemaContext
()), false };
5086
yield return new object?[] { type, new XamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
5087
yield return new object?[] { type, new SubXamlType("name", null, new
XamlSchemaContext
()), false };
5089
yield return new object?[] { new XamlType("namespace", "name", null, new
XamlSchemaContext
()), new XamlType("namespace", "name", null, new
XamlSchemaContext
()), true };
5090
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), true };
5091
yield return new object?[] { new XamlType("namespace", "name", null, new
XamlSchemaContext
()), new XamlType("otherNamespace", "name", null, new
XamlSchemaContext
()), false };
5092
yield return new object?[] { new XamlType("namespace", "name", null, new
XamlSchemaContext
()), new XamlType("namespace", "otherName", null, new
XamlSchemaContext
()), false };
5093
yield return new object?[] { new XamlType("namespace", "name", null, new
XamlSchemaContext
()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), false };
5094
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), new XamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
5095
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), false };
5096
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(string), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(string), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), false };
5097
yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()), new XamlType(typeof(string), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()), false };
5098
yield return new object?[] { new XamlType("namespace", "name", null, new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()), false };
5099
yield return new object?[] { new XamlType("namespace", "name", null, new
XamlSchemaContext
()), new SubXamlType("name", null, new
XamlSchemaContext
()), false };
5101
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), new SubXamlType("name", null, new
XamlSchemaContext
()), true };
5102
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), new SubXamlType("otherName", null, new
XamlSchemaContext
()), false };
5103
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), new XamlType(typeof(int), new
XamlSchemaContext
()), false };
5104
yield return new object?[] { new SubXamlType("name", null, new
XamlSchemaContext
()), new XamlType("namespace", "name", null, new
XamlSchemaContext
()), false };
5129
yield return new object[] { new XamlType("name", "namespace", null, new
XamlSchemaContext
()) };
5130
yield return new object[] { new XamlType("name", "namespace", new XamlType[] { new XamlType(typeof(int), new
XamlSchemaContext
()) }, new
XamlSchemaContext
()) };
5131
yield return new object[] { new XamlType(typeof(int), new
XamlSchemaContext
()) };
5132
yield return new object[] { new SubXamlType("typeName", null, new
XamlSchemaContext
()) };
5176
public NoUnderlyingOrBaseType() : base("name", null, new
XamlSchemaContext
()) { }
System\Xaml\XamlWriterTests.cs (2)
33
TypeResult = new XamlType(typeof(int), new
XamlSchemaContext
())
46
MemberResult = new XamlMember("name", new XamlType(typeof(int), new
XamlSchemaContext
()), false)