9 references to AddToDictionary
System.Xaml (1)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
337
dictionaryType.Invoker.
AddToDictionary
(collection, key, value);
System.Xaml.Tests (8)
System\Xaml\Schema\XamlTypeInvokerTests.cs (8)
107
invoker.
AddToDictionary
(instance, 1, "a");
108
invoker.
AddToDictionary
(instance, 2, null);
118
invoker.
AddToDictionary
(instance, 1, "a");
119
invoker.
AddToDictionary
(instance, 2, null);
128
Assert.Throws<ArgumentNullException>("instance", () => invoker.
AddToDictionary
(null, 1, 2));
135
Assert.Throws<NotSupportedException>(() => invoker.
AddToDictionary
(new object(), 1, 2));
142
Assert.Throws<NotSupportedException>(() => invoker.
AddToDictionary
(new object(), 1, 2));
149
Assert.Throws<XamlSchemaException>(() => invoker.
AddToDictionary
(new GetEnumeratorClass(), new object(), "a"));