예제 #1
0
        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 _));
        }
예제 #2
0
        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 _));
        }
예제 #3
0
        private bool HasDefaultValue(string xaml)
        {
            var xep = new TestableXamlElementProcessor(new ProcessorEssentialsForSimpleTests());

            return(xep.TryGetAttribute(xaml, string.Empty, AttributeType.DefaultValue, out _, out _, out _, out _));
        }
예제 #4
0
        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 _));
        }