33 references to UnknownInvoker
System.Xaml (2)
System\Xaml\Schema\MemberReflector.cs (1)
98
s_UnknownReflector.Invoker = XamlMemberInvoker.
UnknownInvoker
;
System\Xaml\XamlMember.cs (1)
167
_reflector.Invoker = LookupInvoker() ?? XamlMemberInvoker.
UnknownInvoker
;
System.Xaml.Tests (31)
System\Xaml\Schema\XamlMemberInvokerTests.cs (5)
51
XamlMemberInvoker invoker = XamlMemberInvoker.
UnknownInvoker
;
52
Assert.Same(invoker, XamlMemberInvoker.
UnknownInvoker
);
59
yield return new object[] { XamlMemberInvoker.
UnknownInvoker
};
91
Assert.Throws<ArgumentNullException>("instance", () => XamlMemberInvoker.
UnknownInvoker
.GetValue(null));
137
Assert.Throws<ArgumentNullException>("instance", () => XamlMemberInvoker.
UnknownInvoker
.SetValue(null, "value"));
System\Xaml\XamlMemberTests.cs (26)
63
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
87
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
99
Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
119
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
143
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
155
Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
178
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
184
yield return new object?[] { "name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
};
203
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
216
Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
223
Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
234
Assert.Throws<ArgumentException>("getter", () => new XamlMember("name", getter, null, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
244
Assert.Throws<ArgumentException>("setter", () => new XamlMember("name", null, setter, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
265
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
271
yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
};
288
Assert.NotEqual(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
301
Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
308
Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
318
Assert.Throws<ArgumentException>("adder", () => new XamlMember("name", adder, new XamlSchemaContext(), XamlMemberInvoker.
UnknownInvoker
));
328
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo, null, XamlMemberInvoker.
UnknownInvoker
));
329
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo, null, XamlMemberInvoker.
UnknownInvoker
));
331
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null, XamlMemberInvoker.
UnknownInvoker
));
333
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo.Name, eventInfo.GetAddMethod(), null, XamlMemberInvoker.
UnknownInvoker
));
696
Assert.Equal(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
725
Assert.Equal(XamlMemberInvoker.
UnknownInvoker
, member.Invoker);
732
Assert.Equal(XamlMemberInvoker.
UnknownInvoker
, directive.Invoker);