System\Xaml\Schema\XamlTypeNameTests.cs (7)
154Assert.Throws<InvalidOperationException>(() => XamlTypeName.ToString(new XamlTypeName[] { typeName }, new CustomNamespacePrefixLookup()));
166Assert.Throws<InvalidOperationException>(() => XamlTypeName.ToString(new XamlTypeName[] { typeName }, new CustomNamespacePrefixLookup()));
180Assert.Throws<NullReferenceException>(() => XamlTypeName.ToString(new XamlTypeName[] { typeName }, prefixLookup));
192Assert.Throws<InvalidOperationException>(() => XamlTypeName.ToString(new XamlTypeName[] { typeName }, prefixLookup));
219Assert.Equal(expected, XamlTypeName.ToString(typeNameList, prefixLookup));
225Assert.Throws<ArgumentNullException>("typeNameList", () => XamlTypeName.ToString(null, new CustomNamespacePrefixLookup()));
231Assert.Throws<ArgumentNullException>("prefixLookup", () => XamlTypeName.ToString(Array.Empty<XamlTypeName>(), null));