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