2 types derived from SubXamlType
System.Xaml.Tests (2)
Common\CustomXamlType.cs (1)
13public class CustomXamlType : SubXamlType
System\Xaml\XamlTypeTests.cs (1)
5174private class NoUnderlyingOrBaseType : SubXamlType
408 instantiations of SubXamlType
System.Xaml.Tests (408)
System\Xaml\XamlTypeTests.cs (408)
64var type = new SubXamlType(typeName, typeArguments, schemaContext); 76Assert.Throws<ArgumentNullException>("typeName", () => new SubXamlType(null!, Array.Empty<XamlType>(), new XamlSchemaContext())); 139Assert.Throws<ArgumentException>(() => new SubXamlType("typeName", new XamlType?[] { null }, new XamlSchemaContext())); 148Assert.Throws<ArgumentNullException>("schemaContext", () => new SubXamlType("typeName", Array.Empty<XamlType>(), null)); 208yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), new string[] { "namespace" } }; 209yield return new object?[] { new SubXamlType("", "name", null, new XamlSchemaContext()), new string[] { "" } }; 210yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new string[] { "" } }; 427yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), XamlLanguage.Key, null }; 428yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), XamlLanguage.Key, null }; 429yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), XamlLanguage.Key, null }; 447new SubXamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), 453new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), 459new SubXamlType(typeof(ClassWithNullAttributes), new XamlSchemaContext()), 479new SubXamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), 485new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), 491new SubXamlType(typeof(ClassWithNullAttributes), new XamlSchemaContext()), 511new SubXamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), 517new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), 523new SubXamlType(typeof(ClassWithNullAttributes), new XamlSchemaContext()), 543new SubXamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), 549new SubXamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), 555new SubXamlType(typeof(ClassWithNullAttributes), new XamlSchemaContext()), 587new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(int)), new XamlSchemaContext()), 593new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 621var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 689var type = new SubXamlType(new CustomType(typeof(int)) 726yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() }; 727yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() }; 728yield return new object?[] { new SubXamlType(typeof(EmptyClass), new XamlSchemaContext()), Array.Empty<XamlMember>() }; 729yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), Array.Empty<XamlMember>() }; 734new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 773new SubXamlType(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()), 813new SubXamlType(typeof(DuplicateDataClass), new XamlSchemaContext()), 830new SubXamlType(typeof(PrivateDuplicateDataClass), new XamlSchemaContext()), 847new SubXamlType(typeof(NonMatchingInternalSetterClass), new XamlSchemaContext()), 867new SubXamlType(typeof(PrivateNonMatchingInternalSetterClass), new XamlSchemaContext()), 890new SubXamlType(typeof(InternalGetterNonMatchingInternalSetterClass), new XamlSchemaContext()), 1153yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() }; 1154yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() }; 1155yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), Array.Empty<XamlMember>() }; 1156yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), Array.Empty<XamlMember>() }; 1161new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 1178new SubXamlType(typeof(MoreDerivedShadowedDataClass), new XamlSchemaContext()), 1193new SubXamlType(typeof(PrivateMembersDataClass), new XamlSchemaContext()), 1199new SubXamlType(new CustomType(typeof(MembersDataClass)) 1345yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), new XamlType?[] { null } }; 1346yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new XamlType?[] { null } }; 1347yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), new XamlType?[] { null } }; 1348yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), new XamlType?[] { null } }; 1349yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 1390new SubXamlType(typeof(ClassWithContentPropertyContentWrapperAttribute), new XamlSchemaContext()), 1396new SubXamlType(typeof(ClassWithContentWrapperAttribute), new XamlSchemaContext()), 1401new SubXamlType(typeof(InheritedClassWithContentWrapperAttribute), new XamlSchemaContext()), 1406new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithContentWrapperAttribute)), new XamlSchemaContext()), 1411new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new XamlSchemaContext()), 1436var type = new SubXamlType(typeof(ClassWithNullContentWrapperAttribute), new XamlSchemaContext()); 1502var type = new SubXamlType(new CustomType(typeof(List<int>)) 1519yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), "name", null }; 1520yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), "", null }; 1521yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), "name", null }; 1522yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), "name", null }; 1523yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), "name", null }; 1529new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1535new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1541new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1547new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1553new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1559new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1565new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1571new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1577new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1583new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1589new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1595new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1601new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1609new SubXamlType(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()), 1615new SubXamlType(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()), 1621new SubXamlType(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()), 1627new SubXamlType(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()), 1635new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1641new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1647new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1653new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1659new SubXamlType(typeof(AttachableMembersDataClass), new XamlSchemaContext()), 1686var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 1701yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), XamlLanguage.Object }; 1702yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), XamlLanguage.Object }; 1705yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(ValueType), new XamlSchemaContext()) }; 1706yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 1707yield return new object?[] { new SubXamlType(typeof(IConvertible), new XamlSchemaContext()), null }; 1711new SubXamlType(typeof(CustomXamlSchemaContext), new CustomXamlSchemaContext 1741yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), XamlCollectionKind.None }; 1742yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), XamlCollectionKind.None }; 1745yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), XamlCollectionKind.None }; 1746yield return new object?[] { new SubXamlType(typeof(int[]), new XamlSchemaContext()), XamlCollectionKind.Array }; 1747yield return new object?[] { new SubXamlType(typeof(IEnumerable), new XamlSchemaContext()), XamlCollectionKind.None }; 1748yield return new object?[] { new SubXamlType(typeof(IEnumerable<int>), new XamlSchemaContext()), XamlCollectionKind.None }; 1749yield return new object?[] { new SubXamlType(typeof(ICollection), new XamlSchemaContext()), XamlCollectionKind.None }; 1750yield return new object?[] { new SubXamlType(typeof(ICollection<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1751yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1752yield return new object?[] { new SubXamlType(typeof(IList<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1753yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1754yield return new object?[] { new SubXamlType(typeof(IDictionary<int, int>), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1755yield return new object?[] { new SubXamlType(typeof(Collection<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1756yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1757yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1758yield return new object?[] { new SubXamlType(typeof(InvalidReturnGetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.None }; 1759yield return new object?[] { new SubXamlType(typeof(InvalidParametersGetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.None }; 1760yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1761yield return new object?[] { new SubXamlType(typeof(ICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1762yield return new object?[] { new SubXamlType(typeof(InternalICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1763yield return new object?[] { new SubXamlType(typeof(MoreThanOneICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1764yield return new object?[] { new SubXamlType(typeof(PrivateICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1765yield return new object?[] { new SubXamlType(typeof(ProtectedICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1766yield return new object?[] { new SubXamlType(typeof(Dictionary<int, int>), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1767yield return new object?[] { new SubXamlType(typeof(IDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1768yield return new object?[] { new SubXamlType(typeof(InternalIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1769yield return new object?[] { new SubXamlType(typeof(MoreThanOneIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1770yield return new object?[] { new SubXamlType(typeof(PrivateIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1771yield return new object?[] { new SubXamlType(typeof(ProtectedIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1906yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false }; 1907yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), false }; 1910yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 1911yield return new object[] { new SubXamlType(typeof(ClassWithDefaultConstructor), new XamlSchemaContext()), false }; 1912yield return new object[] { new SubXamlType(typeof(AbstractClass), new XamlSchemaContext()), true }; 1913yield return new object[] { new SubXamlType(typeof(IConvertible), new XamlSchemaContext()), true }; 1914yield return new object[] { new SubXamlType(typeof(NestedClass), new XamlSchemaContext()), false }; 1915yield return new object[] { new SubXamlType(typeof(ClassWithInternalDefaultConstructor), new XamlSchemaContext()), false }; 1916yield return new object[] { new SubXamlType(typeof(ClassWithProtectedDefaultConstructor), new XamlSchemaContext()), true }; 1917yield return new object[] { new SubXamlType(typeof(ClassWithPrivateDefaultConstructor), new XamlSchemaContext()), true }; 1918yield return new object[] { new SubXamlType(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), true }; 1919yield return new object[] { new SubXamlType(typeof(StaticClass), new XamlSchemaContext()), true }; 1941yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 1942yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 1943yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 1944yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 1985new SubXamlType(typeof(ClassWithKnownContentPropertyAttribute), new XamlSchemaContext()), 1990new SubXamlType(typeof(ClassWithUnknownContentPropertyAttribute), new XamlSchemaContext()), 1995new SubXamlType(typeof(InheritedClassWithContentPropertyAttribute), new XamlSchemaContext()), 2000new SubXamlType(typeof(ClassWithNullContentPropertyAttribute), new XamlSchemaContext()), 2005new SubXamlType(typeof(ClassWithDefaultContentPropertyAttribute), new XamlSchemaContext()), 2010new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUnknownContentPropertyAttribute)), new XamlSchemaContext()), 2015new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 2097var type = new SubXamlType(new CustomType(typeof(int)) 2139yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 2140yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 2141yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 2142yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 2143yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), null }; 2184new SubXamlType(typeof(ClassWithContentWrapperAttribute), new XamlSchemaContext()), 2189new SubXamlType(typeof(InheritedClassWithContentWrapperAttribute), new XamlSchemaContext()), 2194new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithContentWrapperAttribute)), new XamlSchemaContext()), 2199new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new XamlSchemaContext()), 2224var type = new SubXamlType(typeof(ClassWithNullContentWrapperAttribute), new XamlSchemaContext()); 2281var type = new SubXamlType(new CustomType(typeof(List<int>)) 2314var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 2321var type = new SubXamlType("namespace", "name", null, new XamlSchemaContext()); 2327yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 2328yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 2329yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 2330yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 2371new SubXamlType(typeof(ClassWithTypeXamlDeferLoadAttribute), new XamlSchemaContext()), 2376new SubXamlType(typeof(InheritedClassWithTypeXamlDeferLoadAttribute), new XamlSchemaContext()), 2381new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringXamlDeferLoadAttribute)), new XamlSchemaContext()), 2386new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 2460var type = new SubXamlType(new CustomType(typeof(List<int>)) 2483var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 2493var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 2545var type = new SubXamlType("namespace", "name", null, new XamlSchemaContext()); 2553var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 2571yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false }; 2572yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), false }; 2573yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 2574yield return new object[] { new SubXamlType(typeof(object), new XamlSchemaContext()), false }; 2604new SubXamlType(typeof(ClassWithAmbientAttribute), new XamlSchemaContext()), 2609new SubXamlType(typeof(InheritedClassWithAmbientAttribute), new XamlSchemaContext()), 2614new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithAmbientAttribute)), new XamlSchemaContext()), 2619new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 2652yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), true }; 2653yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), true }; 2656yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), true }; 2657yield return new object[] { new SubXamlType(typeof(AbstractClass), new XamlSchemaContext()), false }; 2658yield return new object[] { new SubXamlType(typeof(IConvertible), new XamlSchemaContext()), false }; 2659yield return new object[] { new SubXamlType(typeof(NestedClass), new XamlSchemaContext()), false }; 2660yield return new object[] { new SubXamlType(typeof(List<>), new XamlSchemaContext()), false }; 2661yield return new object[] { new SubXamlType(typeof(List<>).GetTypeInfo().GenericTypeParameters[0], new XamlSchemaContext()), false }; 2662yield return new object[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), true }; 2663yield return new object[] { new SubXamlType(typeof(ClassWithDefaultConstructor), new XamlSchemaContext()), true }; 2664yield return new object[] { new SubXamlType(typeof(ClassWithInternalDefaultConstructor), new XamlSchemaContext()), true }; 2665yield return new object[] { new SubXamlType(typeof(ClassWithProtectedDefaultConstructor), new XamlSchemaContext()), false }; 2666yield return new object[] { new SubXamlType(typeof(ClassWithPrivateDefaultConstructor), new XamlSchemaContext()), false }; 2667yield return new object[] { new SubXamlType(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), true }; 2668yield return new object[] { new SubXamlType(typeof(StaticClass), new XamlSchemaContext()), false }; 2690yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false }; 2691yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), false }; 2694yield return new object[] { new SubXamlType(typeof(MarkupExtension), new XamlSchemaContext()), true }; 2695yield return new object[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext()), true }; 2696yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 2718yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false }; 2719yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), false }; 2722yield return new object?[] { new SubXamlType(typeof(INameScope), new XamlSchemaContext()), true }; 2723yield return new object?[] { new SubXamlType(typeof(INameScopeDictionary), new XamlSchemaContext()), true }; 2724yield return new object?[] { new SubXamlType(typeof(CustomNameScope), new XamlSchemaContext()), true }; 2725yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 2775yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), true }; 2776yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), true }; 2779yield return new object[] { new SubXamlType(typeof(int?), new XamlSchemaContext()), true }; 2780yield return new object[] { new SubXamlType(typeof(System.Nullable<>), new XamlSchemaContext()), true }; 2781yield return new object[] { new SubXamlType(typeof(Nullable<int>), new XamlSchemaContext()), false }; 2782yield return new object[] { new SubXamlType(typeof(Generic<int>), new XamlSchemaContext()), false }; 2783yield return new object[] { new SubXamlType(typeof(KeyValuePair<int, string>), new XamlSchemaContext()), false }; 2784yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 2785yield return new object[] { new SubXamlType(typeof(string), new XamlSchemaContext()), true }; 2786yield return new object[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), true }; 2789new SubXamlType(new ReflectionOnlyType(typeof(Nullable<int>)) 2822yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), true }; 2823yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), true }; 2826yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), true }; 2827yield return new object[] { new SubXamlType(typeof(Generic<>), new XamlSchemaContext()), false }; 2849yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), true, true }; 2850yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), true, true }; 2853yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false, false }; 2875yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false, true }; 2876yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), false, true }; 2877yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false, false }; 2878yield return new object[] { new SubXamlType(typeof(object), new XamlSchemaContext()), false, false }; 2908new SubXamlType(typeof(ClassWithWhitespaceSignificantCollectionAttribute), new XamlSchemaContext()), 2913new SubXamlType(typeof(InheritedClassWithWhitespaceSignificantCollectionAttribute), new XamlSchemaContext()), 2918new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithWhitespaceSignificantCollectionAttribute)), new XamlSchemaContext()), 2923new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 2956yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false }; 2957yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), false }; 2960yield return new object[] { new SubXamlType(typeof(IXmlSerializable), new XamlSchemaContext()), true }; 2961yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 2983yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 2984yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 2985yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 2986yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 2989yield return new object?[] { new SubXamlType(typeof(int[]), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 2990yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2991yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 2992yield return new object?[] { new SubXamlType(typeof(AmbiguousIList), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2993yield return new object?[] { new SubXamlType(typeof(AmbiguousICollection), new XamlSchemaContext()), null }; 2994yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2995yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2996yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2997yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new XamlSchemaContext()), new XamlType(typeof(string), new XamlSchemaContext()) }; 2998yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 3031var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 3038yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 3039yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 3040yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 3041yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 3044yield return new object?[] { new SubXamlType(typeof(int[]), new XamlSchemaContext()), null }; 3045yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), null }; 3046yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), null }; 3047yield return new object?[] { new SubXamlType(typeof(AmbiguousIList), new XamlSchemaContext()), null }; 3048yield return new object?[] { new SubXamlType(typeof(AmbiguousICollection), new XamlSchemaContext()), null }; 3049yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new XamlSchemaContext()), null }; 3050yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()), null }; 3051yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 3052yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 3053yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 3086var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 3289yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 3290yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 3291yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 3292yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 3293yield return new object?[] { new SubXamlType(typeof(MarkupExtension), new XamlSchemaContext()), null }; 3334new SubXamlType(typeof(ClassWithMarkupExtensionReturnTypeAttribute), new XamlSchemaContext()), 3339new SubXamlType(typeof(InheritedClassWithMarkupExtensionReturnTypeAttribute), new XamlSchemaContext()), 3344new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithMarkupExtensionReturnTypeAttribute)), new XamlSchemaContext()), 3349new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(MarkupExtension)), new XamlSchemaContext()), 3374var type = new SubXamlType(typeof(ClassWithNullMarkupExtensionReturnTypeAttribute), new XamlSchemaContext()); 3453yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), "name", false, null, null }; 3454yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), "", true, null, null }; 3455yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), "name", false, null, null }; 3456yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), "name", false, null, null }; 3457yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), "name", false, null, null }; 3466new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3473new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3480new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3487new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3494new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3501new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3508new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3515new SubXamlType(typeof(MoreDerivedShadowedDataClass), new XamlSchemaContext()), 3522new SubXamlType(new CustomType(typeof(EvenMoreDerivedShadowedBaseClass)) 3537new SubXamlType(new CustomType(typeof(EvenMoreDerivedShadowedBaseClass)) 3552new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3559new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3566new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3573new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3580new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3587new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3596new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3603new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3614new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3621new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3628new SubXamlType(typeof(MembersDataClass), new XamlSchemaContext()), 3658var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 3673yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), 1, null }; 3674yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), 1, null }; 3675yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), 1, null }; 3676yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), -1, null }; 3677yield return new object?[] { new SubXamlType(typeof(MarkupExtension), new XamlSchemaContext()), 1, null }; 3680yield return new object?[] { new SubXamlType(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), 1, new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 3682yield return new object?[] { new SubXamlType(typeof(TypeExtension), new XamlSchemaContext()), 2, null }; 3683yield return new object?[] { new SubXamlType(typeof(TypeExtension), new XamlSchemaContext()), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } }; 3684yield return new object?[] { new SubXamlType(typeof(TypeExtension), new XamlSchemaContext()), 0, null }; 3685yield return new object?[] { new SubXamlType(typeof(TypeExtension), new XamlSchemaContext()), -1, null }; 3688yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 2, null }; 3689yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } }; 3690yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 0, Array.Empty<XamlType>() }; 3691yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), -1, null }; 3717var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 3724yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 3725yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 3726yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 3727yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 3768new SubXamlType(typeof(ClassWithXamlSetMarkupExtensionAttribute), new XamlSchemaContext()), 3773new SubXamlType(typeof(InheritedClassWithXamlSetMarkupExtensionAttribute), new XamlSchemaContext()), 3778new SubXamlType(typeof(ClassWithNullXamlSetMarkupExtensionAttribute), new XamlSchemaContext()), 3783new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 3861var type = new SubXamlType(new CustomType(typeof(int)) 3891var type = new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetMarkupExtensionAttribute)), new XamlSchemaContext()); 3923yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 3924yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 3925yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), null }; 3926yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 3967new SubXamlType(typeof(ClassWithXamlSetTypeConverterAttribute), new XamlSchemaContext()), 3972new SubXamlType(typeof(InheritedClassWithXamlSetTypeConverterAttribute), new XamlSchemaContext()), 3977new SubXamlType(typeof(ClassWithNullXamlSetTypeConverterAttribute), new XamlSchemaContext()), 3982new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 4060var type = new SubXamlType(new CustomType(typeof(int)) 4090var type = new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetTypeConverterAttribute)), new XamlSchemaContext()); 4122yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false }; 4123yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), false }; 4124yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 4125yield return new object[] { new SubXamlType(typeof(object), new XamlSchemaContext()), false }; 4155new SubXamlType(typeof(ClassWithTrimSurroundingWhitespaceAttribute), new XamlSchemaContext()), 4160new SubXamlType(typeof(InheritedClassWithTrimSurroundingWhitespaceAttribute), new XamlSchemaContext()), 4165new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithTrimSurroundingWhitespaceAttribute)), new XamlSchemaContext()), 4170new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 4203yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 4204yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 4205yield return new object?[] { new SubXamlType(typeof(byte), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(ByteConverter), null) }; 4206yield return new object?[] { new SubXamlType(typeof(sbyte), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(SByteConverter), null) }; 4207yield return new object?[] { new SubXamlType(typeof(ushort), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(UInt16Converter), null) }; 4208yield return new object?[] { new SubXamlType(typeof(short), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int16Converter), null) }; 4209yield return new object?[] { new SubXamlType(typeof(uint), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(UInt32Converter), null) }; 4210yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int32Converter), null) }; 4211yield return new object?[] { new SubXamlType(typeof(ulong), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(UInt64Converter), null) }; 4212yield return new object?[] { new SubXamlType(typeof(long), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int64Converter), null) }; 4213yield return new object?[] { new SubXamlType(typeof(char), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(CharConverter), null) }; 4214yield return new object?[] { new SubXamlType(typeof(bool), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(BooleanConverter), null) }; 4215yield return new object?[] { new SubXamlType(typeof(float), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(SingleConverter), null) }; 4216yield return new object?[] { new SubXamlType(typeof(double), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(DoubleConverter), null) }; 4217yield return new object?[] { new SubXamlType(typeof(decimal), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(DecimalConverter), null) }; 4218yield return new object?[] { new SubXamlType(typeof(string), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(StringConverter), null) }; 4219yield return new object?[] { new SubXamlType(typeof(TimeSpan), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(TimeSpanConverter), null) }; 4220yield return new object?[] { new SubXamlType(typeof(Guid), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(GuidConverter), null) }; 4221yield return new object?[] { new SubXamlType(typeof(CultureInfo), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(CultureInfoConverter), null) }; 4222yield return new object?[] { new SubXamlType(typeof(ConsoleColor), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(EnumConverter), new XamlType(typeof(ConsoleColor), new XamlSchemaContext())) }; 4223yield return new object?[] { new SubXamlType(typeof(int?), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int32Converter), null) }; 4224yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object) }; 4265new SubXamlType(typeof(ClassWithTypeConverterAttribute), new XamlSchemaContext()), 4270new SubXamlType(typeof(StructWithTypeConverterAttribute?), new XamlSchemaContext()), 4275new SubXamlType(typeof(InheritedClassWithTypeConverterAttribute), new XamlSchemaContext()), 4280new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringTypeConverterAttribute)), new XamlSchemaContext()), 4285new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 4359var type = new SubXamlType(new CustomType(typeof(List<int>)) 4379var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 4387var type = new SubXamlType(typeof(ClassWithNullStringTypeConverterAttribute), new XamlSchemaContext()); 4429var type = new SubXamlType("namespace", "name", null, new XamlSchemaContext()); 4437var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 4455yield return new object[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), false }; 4456yield return new object[] { new SubXamlType("name", null, new XamlSchemaContext()), false }; 4457yield return new object[] { new SubXamlType(typeof(int), new XamlSchemaContext()), false }; 4458yield return new object[] { new SubXamlType(typeof(object), new XamlSchemaContext()), false }; 4459yield return new object[] { new SubXamlType(typeof(MarkupExtension), new XamlSchemaContext()), false }; 4500new SubXamlType(typeof(ClassWithUsableDuringInitializationAttribute), new XamlSchemaContext()), 4505new SubXamlType(typeof(InheritedClassWithUsableDuringInitializationAttribute), new XamlSchemaContext()), 4510new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUsableDuringInitializationAttribute)), new XamlSchemaContext()), 4515new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 4600var type = new SubXamlType(new CustomType(typeof(int)) 4627yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), null }; 4628yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), null }; 4630yield return new object?[] { new SubXamlType(typeof(int?), new XamlSchemaContext()), null }; 4631yield return new object?[] { new SubXamlType(typeof(string), new XamlSchemaContext()), new XamlValueConverter<ValueSerializer>(ValueSerializer.GetSerializerFor(typeof(string))!.GetType(), null) }; 4632yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), null }; 4673new SubXamlType(typeof(ClassWithValueSerializerAttribute), new XamlSchemaContext()), 4678new SubXamlType(typeof(StructWithValueSerializerAttribute?), new XamlSchemaContext()), 4683new SubXamlType(typeof(InheritedClassWithValueSerializerAttribute), new XamlSchemaContext()), 4688new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringValueSerializerAttribute)), new XamlSchemaContext()), 4693new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()), 4767var type = new SubXamlType(new CustomType(typeof(List<int>)) 4785var type = new SubXamlType(typeof(ClassWithNullValueSerializerAttribute), new XamlSchemaContext()); 4793var type = new SubXamlType(typeof(ClassWithNullStringValueSerializerAttribute), new XamlSchemaContext()); 5087yield return new object?[] { type, new SubXamlType("name", null, new XamlSchemaContext()), false }; 5099yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new SubXamlType("name", null, new XamlSchemaContext()), false }; 5101yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new SubXamlType("name", null, new XamlSchemaContext()), true }; 5102yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new SubXamlType("otherName", null, new XamlSchemaContext()), false }; 5103yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()), false }; 5104yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new XamlType("namespace", "name", null, new XamlSchemaContext()), false }; 5132yield return new object[] { new SubXamlType("typeName", null, new XamlSchemaContext()) };
67 references to SubXamlType
System.Xaml.Tests (67)
System\Xaml\XamlTypeTests.cs (67)
64var type = new SubXamlType(typeName, typeArguments, schemaContext); 610public void LookupAliasedProperty_Type_ReturnsExpected(SubXamlType type, XamlDirective directive, XamlMember expected) 621var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 689var type = new SubXamlType(new CustomType(typeof(int)) 923public void LookupAllAttachableMembers_Invoke_ReturnsExpected(SubXamlType type, XamlMember[]? expectedLookup, XamlMember[]? expectedGet = null) 1238public void LookupAllMembers_Invoke_ReturnsExpected(SubXamlType type, XamlMember[]? expectedLookup, XamlMember[]? expectedGet = null) 1427public void LookupAllowedContentTypes_Invoke_ReturnsExpected(SubXamlType type, IList<XamlType> expected) 1436var type = new SubXamlType(typeof(ClassWithNullContentWrapperAttribute), new XamlSchemaContext()); 1502var type = new SubXamlType(new CustomType(typeof(List<int>)) 1677public void LookupAttachableMember_Invoke_ReturnsExpected(SubXamlType type, string name, XamlMember expectedLookup, XamlMember? expectedGet = null) 1686var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 1733public void LookupBaseType_Invoke_ReturnsExpected(SubXamlType type, XamlType expected) 1791public void LookupCollectionKind_Invoke_ReturnsExpected(SubXamlType type, XamlCollectionKind expected) 1933public void LookupConstructionRequiresArguments_Invoke_ReturnsExpected(SubXamlType type, bool expected) 2039public void LookupContentProperty_Invoke_ReturnsExpected(SubXamlType type, XamlMember expected) 2097var type = new SubXamlType(new CustomType(typeof(int)) 2215public void LookupContentWrappers_Invoke_ReturnsExpected(SubXamlType type, IList<XamlType> expected) 2224var type = new SubXamlType(typeof(ClassWithNullContentWrapperAttribute), new XamlSchemaContext()); 2281var type = new SubXamlType(new CustomType(typeof(List<int>)) 2314var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 2321var type = new SubXamlType("namespace", "name", null, new XamlSchemaContext()); 2402public void LookupDeferringLoader_Invoke_ReturnsExpected(SubXamlType type, XamlValueConverter<XamlDeferringLoader> expected) 2460var type = new SubXamlType(new CustomType(typeof(List<int>)) 2483var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 2493var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 2545var type = new SubXamlType("namespace", "name", null, new XamlSchemaContext()); 2553var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 2635public void LookupIsAmbient_Invoke_ReturnsExpected(SubXamlType type, bool expected) 2682public void LookupIsConstructible_Invoke_ReturnsExpected(SubXamlType type, bool expected) 2710public void LookupIsMarkupExtension_Invoke_ReturnsExpected(SubXamlType type, bool expected) 2739public void LookupIsNameScope_Invoke_ReturnsExpected(SubXamlType type, bool expected) 2811public void LookupIsNullable_Invoke_ReturnsExpected(SubXamlType type, bool expected) 2841public void LookupIsPublic_Invoke_ReturnsExpected(SubXamlType type, bool expected) 2867public void LookupIsUnknown_Invoke_ReturnsExpected(SubXamlType type, bool expectedLookup, bool expectedIs) 2939public void LookupIsWhitespaceSignificantCollection_Invoke_ReturnsExpected(SubXamlType type, bool expectedLookup, bool expectedIs) 2975public void LookupIsXData_Invoke_ReturnsExpected(SubXamlType type, bool expected) 3020public void LookupItemType_Invoke_ReturnsExpected(SubXamlType type, XamlType expected) 3031var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 3075public void LookupKeyType_Invoke_ReturnsExpected(SubXamlType type, XamlType expected) 3086var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 3365public void LookupMarkupExtensionReturnType_Invoke_ReturnsExpected(SubXamlType type, XamlType expected) 3374var type = new SubXamlType(typeof(ClassWithNullMarkupExtensionReturnTypeAttribute), new XamlSchemaContext()); 3649public void LookupMember_Invoke_ReturnsExpected(SubXamlType type, string name, bool skipReadOnlyCheck, XamlMember expectedLookup, XamlMember expectedGet) 3658var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 3705public void LookupPositionalParameters_Invoke_ReturnsExpected(SubXamlType type, int parameterCount, IList<XamlType> expected) 3717var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 3807public void LookupSetMarkupExtensionHandler_Invoke_ReturnsExpected(SubXamlType type, EventHandler<XamlSetMarkupExtensionEventArgs> expected) 3861var type = new SubXamlType(new CustomType(typeof(int)) 3891var type = new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetMarkupExtensionAttribute)), new XamlSchemaContext()); 4006public void LookupSetTypeConverterHandler_Invoke_ReturnsExpected(SubXamlType type, EventHandler<XamlSetTypeConverterEventArgs> expected) 4060var type = new SubXamlType(new CustomType(typeof(int)) 4090var type = new SubXamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetTypeConverterAttribute)), new XamlSchemaContext()); 4186public void LookupTrimSurroundingWhitespace_Invoke_ReturnsExpected(SubXamlType type, bool expected) 4301public void LookupTypeConverter_Invoke_ReturnsExpected(SubXamlType type, XamlValueConverter<TypeConverter> expected) 4359var type = new SubXamlType(new CustomType(typeof(List<int>)) 4379var type = new SubXamlType(underlyingType, new XamlSchemaContext()); 4387var type = new SubXamlType(typeof(ClassWithNullStringTypeConverterAttribute), new XamlSchemaContext()); 4429var type = new SubXamlType("namespace", "name", null, new XamlSchemaContext()); 4437var type = new SubXamlType(typeof(int), new XamlSchemaContext()); 4531public void LookupUsableDuringInitialization_Invoke_ReturnsExpected(SubXamlType type, bool expected) 4600var type = new SubXamlType(new CustomType(typeof(int)) 4709public void LookupValueSerializer_Invoke_ReturnsExpected(SubXamlType type, XamlValueConverter<ValueSerializer> expected) 4767var type = new SubXamlType(new CustomType(typeof(List<int>)) 4785var type = new SubXamlType(typeof(ClassWithNullValueSerializerAttribute), new XamlSchemaContext()); 4793var type = new SubXamlType(typeof(ClassWithNullStringValueSerializerAttribute), new XamlSchemaContext()); 4833yield return new object?[] { new XamlType(typeof(SubXamlType), new XamlSchemaContext()), new XamlType(typeof(XamlType), new XamlSchemaContext()), true }; 4834yield return new object?[] { new XamlType(typeof(XamlType), new XamlSchemaContext()), new XamlType(typeof(SubXamlType), new XamlSchemaContext()), false };