private bool HasAttribute(string xaml, string attribute, AttributeType attributeType = AttributeType.Any) { var xep = new TestableXamlElementProcessor(new ProcessorEssentialsForSimpleTests()); return(xep.TryGetAttribute(xaml, attribute, attributeType, out _, out _, out _, out _)); }
private bool HasAttribute(string xaml, string attribute, AttributeType attributeType = AttributeType.Any) { var xep = new TestableXamlElementProcessor(ProjectType.Any, new DefaultTestLogger()); return(xep.TryGetAttribute(xaml, attribute, attributeType, out _, out _, out _, out _)); }
private bool HasDefaultValue(string xaml) { var xep = new TestableXamlElementProcessor(new ProcessorEssentialsForSimpleTests()); return(xep.TryGetAttribute(xaml, string.Empty, AttributeType.DefaultValue, out _, out _, out _, out _)); }
private bool HasDefaultValue(string xaml) { var xep = new TestableXamlElementProcessor(ProjectType.Any, new DefaultTestLogger()); return(xep.TryGetAttribute(xaml, string.Empty, AttributeType.DefaultValue, out _, out _, out _, out _)); }