public virtual IEnumerable <DependencyPropertyTestMethod> GetDependencyPropertyTests()
        {
            // HorizontalAlignmentProperty tests
            yield return(HorizontalAlignmentProperty.BindingTest);

            yield return(HorizontalAlignmentProperty.CheckDefaultValueTest);

            yield return(HorizontalAlignmentProperty.ChangeClrSetterTest);

            yield return(HorizontalAlignmentProperty.ChangeSetValueTest);

            yield return(HorizontalAlignmentProperty.ClearValueResetsDefaultTest);

            yield return(HorizontalAlignmentProperty.InvalidValueFailsTest.Bug("Core property is not validated"));

            yield return(HorizontalAlignmentProperty.InvalidValueIsIgnoredTest.Bug("Core property is not validated"));

            yield return(HorizontalAlignmentProperty.InvalidValueDoesNotChangeVisualStateTest);

            yield return(HorizontalAlignmentProperty.CanBeStyledTest);

            yield return(HorizontalAlignmentProperty.TemplateBindTest);

            yield return(HorizontalAlignmentProperty.DoesNotChangeVisualStateTest(HorizontalAlignment.Left, HorizontalAlignment.Right));

            yield return(HorizontalAlignmentProperty.SetXamlAttributeTest);

            yield return(HorizontalAlignmentProperty.SetXamlElementTest);

            // HorizontalAlignmentProperty tests
            yield return(VerticalAlignmentProperty.BindingTest);

            yield return(VerticalAlignmentProperty.CheckDefaultValueTest);

            yield return(VerticalAlignmentProperty.ChangeClrSetterTest);

            yield return(VerticalAlignmentProperty.ChangeSetValueTest);

            yield return(VerticalAlignmentProperty.ClearValueResetsDefaultTest);

            yield return(VerticalAlignmentProperty.InvalidValueFailsTest.Bug("Core property is not validated"));

            yield return(VerticalAlignmentProperty.InvalidValueIsIgnoredTest.Bug("Core property is not validated"));

            yield return(VerticalAlignmentProperty.InvalidValueDoesNotChangeVisualStateTest);

            yield return(VerticalAlignmentProperty.CanBeStyledTest);

            yield return(VerticalAlignmentProperty.TemplateBindTest);

            yield return(VerticalAlignmentProperty.DoesNotChangeVisualStateTest(VerticalAlignment.Bottom, VerticalAlignment.Center));

            yield return(VerticalAlignmentProperty.SetXamlAttributeTest);

            yield return(VerticalAlignmentProperty.SetXamlElementTest);
        }
示例#2
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());

            // Remove the tests requiring templates inherited from properties
            // on FrameworkElementTest
            tests.RemoveTests(HorizontalAlignmentProperty.TemplateBindTest);
            tests.RemoveTests(HorizontalAlignmentProperty.DoesNotChangeVisualStateTest(HorizontalAlignment.Left, HorizontalAlignment.Right));
            tests.RemoveTests(HorizontalAlignmentProperty.InvalidValueDoesNotChangeVisualStateTest);
            tests.RemoveTests(VerticalAlignmentProperty.TemplateBindTest);
            tests.RemoveTests(VerticalAlignmentProperty.DoesNotChangeVisualStateTest(VerticalAlignment.Bottom, VerticalAlignment.Center));
            tests.RemoveTests(VerticalAlignmentProperty.InvalidValueDoesNotChangeVisualStateTest);

            return(tests);
        }