34 references to Any
System.Xaml (8)
System\Xaml\Schema\XamlDirective.cs (1)
59
_allowedLocation = AllowedMemberLocations.
Any
;
System\Xaml\XamlLanguage.cs (7)
128
s_listOfObject.Value, null, AllowedMemberLocations.
Any
), true);
137
s_string.Value, BuiltInValueConverter.Int32, AllowedMemberLocations.
Any
), true);
140
s_string.Value, BuiltInValueConverter.String, AllowedMemberLocations.
Any
), true);
145
s_listOfObject.Value, null, AllowedMemberLocations.
Any
), true);
148
s_object.Value, null, AllowedMemberLocations.
Any
), true);
151
s_object.Value, BuiltInValueConverter.String, AllowedMemberLocations.
Any
), true);
162
s_listOfObject.Value, null, AllowedMemberLocations.
Any
), true);
System.Xaml.Tests (26)
System\Xaml\XamlDirectiveTests.cs (19)
19
yield return new object?[] { new string[] { "xamlNamespace" }, "name", null, AllowedMemberLocations.
Any
};
42
Assert.Throws<ArgumentNullException>("xamlType", () => new XamlDirective(new string[] { "namespace"}, "name", null, null, AllowedMemberLocations.
Any
));
49
Assert.Throws<ArgumentNullException>("xamlNamespaces", () => new XamlDirective(null, "name", type, null, AllowedMemberLocations.
Any
));
56
Assert.Throws<ArgumentException>("xamlNamespaces", () => new XamlDirective(new string?[] { null }, "name", type, null, AllowedMemberLocations.
Any
));
69
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);
83
var directive = new XamlDirective(new string[] { "namespace"}, "name", type, null, AllowedMemberLocations.
Any
);
91
var directive = new XamlDirective(new string[] { "namespace"}, "name", type, null, AllowedMemberLocations.
Any
);
99
var directive = new XamlDirective(new string[] { "xamlNamespace" }, "name", type1, null, AllowedMemberLocations.
Any
);
101
yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, "name", type1, null, AllowedMemberLocations.
Any
), true };
104
yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, "name", type2, null, AllowedMemberLocations.
Any
), true };
105
yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespaces" }, "name", type1, null, AllowedMemberLocations.
Any
), false };
106
yield return new object?[] { directive, new XamlDirective(Array.Empty<string>(), "name", type1, null, AllowedMemberLocations.
Any
), false };
107
yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace", "2" }, "name", type1, null, AllowedMemberLocations.
Any
), false };
108
yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, "name2", type1, null, AllowedMemberLocations.
Any
), false };
109
yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, null, type1, null, AllowedMemberLocations.
Any
), false };
150
yield return new object[] { new XamlDirective(Array.Empty<string>(), "name", type, null, AllowedMemberLocations.
Any
), "name" };
151
yield return new object[] { new XamlDirective(new string[] { "1", "2" }, "name", type, null, AllowedMemberLocations.
Any
), "{1}name" };
250
var converter = new SubXamlDirective(Array.Empty<string>(), "name", type, typeConverter, AllowedMemberLocations.
Any
);
258
var converter = new SubXamlDirective(Array.Empty<string>(), "name", type, null!, AllowedMemberLocations.
Any
);
System\Xaml\XamlLanguageTests.cs (7)
276
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);
341
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);
354
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);
380
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);
393
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);
406
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);
458
Assert.Equal(AllowedMemberLocations.
Any
, directive.AllowedLocation);