Beispiel #1
0
        /// <summary>
        /// Get the dependency property tests.
        /// </summary>
        /// <returns>The dependency property tests.</returns>
        public override IEnumerable <DependencyPropertyTestMethod> GetDependencyPropertyTests()
        {
            // Get the base Control dependency property tests
            IList <DependencyPropertyTestMethod> tests = TagInherited(base.GetDependencyPropertyTests());

            // HeaderProperty tests
            tests.Add(HeaderProperty.CheckDefaultValueTest);
            tests.Add(HeaderProperty.ChangeClrSetterTest);
            tests.Add(HeaderProperty.ChangeSetValueTest);
            tests.Add(HeaderProperty.SetNullTest);
            tests.Add(HeaderProperty.ClearValueResetsDefaultTest);
            tests.Add(HeaderProperty.CanBeStyledTest);
            // tests.Add(HeaderProperty.TemplateBindTest); // Inconsistent repro of bug 78616
            tests.Add(HeaderProperty.DoesNotChangeVisualStateTest(null, "Test"));
            tests.Add(HeaderProperty.SetXamlAttributeTest);
            tests.Add(HeaderProperty.SetXamlElementTest);
            tests.Add(HeaderProperty.DataTemplateWithIntTest);
            tests.Add(HeaderProperty.DataTemplateWithStringTest);
            tests.Add(HeaderProperty.DataTemplateWithStringAndPropertyTest);
            tests.Add(HeaderProperty.DataTemplateWithUIElementFailsTest);
            tests.Add(HeaderProperty.DataTemplateWithBusinessObjectTest);

            // HeaderTemplateProperty tests
            tests.Add(HeaderTemplateProperty.CheckDefaultValueTest);
            tests.Add(HeaderTemplateProperty.ChangeClrSetterTest);
            tests.Add(HeaderTemplateProperty.ChangeSetValueTest);
            tests.Add(HeaderTemplateProperty.SetNullTest);
            tests.Add(HeaderTemplateProperty.ClearValueResetsDefaultTest);
            tests.Add(HeaderTemplateProperty.CanBeStyledTest);
            tests.Add(HeaderTemplateProperty.TemplateBindTest);

            return(tests);
        }
        /// <summary>
        /// Get the dependency property tests.
        /// </summary>
        /// <returns>The dependency property tests.</returns>
        public override IEnumerable<DependencyPropertyTestMethod> GetDependencyPropertyTests()
        {
            // Get the base Control dependency property tests
            IList<DependencyPropertyTestMethod> tests = TagInherited(base.GetDependencyPropertyTests());

            // HeaderProperty tests
            tests.Add(HeaderProperty.BindingTest);
            tests.Add(HeaderProperty.CheckDefaultValueTest);
            tests.Add(HeaderProperty.ChangeClrSetterTest);
            tests.Add(HeaderProperty.ChangeSetValueTest);
            tests.Add(HeaderProperty.SetNullTest);
            tests.Add(HeaderProperty.ClearValueResetsDefaultTest);
            tests.Add(HeaderProperty.CanBeStyledTest);
            tests.Add(HeaderProperty.TemplateBindTest.Bug("TODO: Investigate why this fails here but not for the Content property."));
            tests.Add(HeaderProperty.DoesNotChangeVisualStateTest(null, "Test"));
            tests.Add(HeaderProperty.SetXamlAttributeTest);
            tests.Add(HeaderProperty.SetXamlElementTest);
            tests.Add(HeaderProperty.DataTemplateWithIntTest);
            tests.Add(HeaderProperty.DataTemplateWithStringTest);
            tests.Add(HeaderProperty.DataTemplateWithStringAndPropertyTest);
            tests.Add(HeaderProperty.DataTemplateWithUIElementFailsTest);
            tests.Add(HeaderProperty.DataTemplateWithBusinessObjectTest);

            // HeaderTemplateProperty tests
            tests.Add(HeaderTemplateProperty.BindingTest);
            tests.Add(HeaderTemplateProperty.CheckDefaultValueTest);
            tests.Add(HeaderTemplateProperty.ChangeClrSetterTest);
            tests.Add(HeaderTemplateProperty.ChangeSetValueTest);
            tests.Add(HeaderTemplateProperty.SetNullTest);
            tests.Add(HeaderTemplateProperty.ClearValueResetsDefaultTest);
            tests.Add(HeaderTemplateProperty.CanBeStyledTest);
            tests.Add(HeaderTemplateProperty.TemplateBindTest);

            // ItemContainerStyleProperty tests
            tests.Add(ItemContainerStyleProperty.BindingTest);
            tests.Add(ItemContainerStyleProperty.CheckDefaultValueTest);
            tests.Add(ItemContainerStyleProperty.ChangeClrSetterTest);
            tests.Add(ItemContainerStyleProperty.ChangeSetValueTest);
            tests.Add(ItemContainerStyleProperty.SetNullTest);
            tests.Add(ItemContainerStyleProperty.ClearValueResetsDefaultTest);
            tests.Add(ItemContainerStyleProperty.CanBeStyledTest);
            tests.Add(ItemContainerStyleProperty.TemplateBindTest);
            tests.Add(ItemContainerStyleProperty.SetXamlAttributeTest.Bug("TODO: XAML Parser?"));
            tests.Add(ItemContainerStyleProperty.SetXamlElementTest.Bug("TODO: XAML Parser?"));

            return tests;
        }