9 references to AddToCollection
System.Xaml (1)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
320
collectionType.Invoker.
AddToCollection
(collection, value);
System.Xaml.Tests (8)
System\Xaml\Schema\XamlTypeInvokerTests.cs (8)
53
invoker.
AddToCollection
(instance, "a");
54
invoker.
AddToCollection
(instance, null);
63
invoker.
AddToCollection
(instance, "a");
64
invoker.
AddToCollection
(instance, null);
72
Assert.Throws<ArgumentNullException>("instance", () => invoker.
AddToCollection
(null, 1));
85
Assert.Throws<NotSupportedException>(() => invoker.
AddToCollection
(new object(), 1));
92
Assert.Throws<NotSupportedException>(() => invoker.
AddToCollection
(new object(), 1));
99
Assert.Throws<XamlSchemaException>(() => invoker.
AddToCollection
(new GetEnumeratorClass(), "a"));