/// <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()); // ContentProperty tests tests.Add(ContentProperty.CheckDefaultValueTest); tests.Add(ContentProperty.ChangeClrSetterTest); tests.Add(ContentProperty.ChangeSetValueTest); tests.Add(ContentProperty.SetNullTest); tests.Add(ContentProperty.ClearValueResetsDefaultTest); tests.Add(ContentProperty.CanBeStyledTest); tests.Add(ContentProperty.TemplateBindTest); tests.Add(ContentProperty.DoesNotChangeVisualStateTest(null, "Test")); tests.Add(ContentProperty.SetXamlAttributeTest); tests.Add(ContentProperty.SetXamlElementTest); tests.Add(ContentProperty.SetXamlContentTest); tests.Add(ContentProperty.IsContentPropertyTest); tests.Add(ContentProperty.DataTemplateWithIntTest); tests.Add(ContentProperty.DataTemplateWithStringTest); tests.Add(ContentProperty.DataTemplateWithStringAndPropertyTest); tests.Add(ContentProperty.DataTemplateWithUIElementFailsTest); tests.Add(ContentProperty.DataTemplateWithBusinessObjectTest); // ContentTemplateProperty tests tests.Add(ContentTemplateProperty.CheckDefaultValueTest); tests.Add(ContentTemplateProperty.ChangeClrSetterTest); tests.Add(ContentTemplateProperty.ChangeSetValueTest); tests.Add(ContentTemplateProperty.SetNullTest); tests.Add(ContentTemplateProperty.ClearValueResetsDefaultTest); tests.Add(ContentTemplateProperty.CanBeStyledTest); tests.Add(ContentTemplateProperty.TemplateBindTest); return(tests); }
/// <summary> /// Get the dependency property tests. /// </summary> /// <returns>The dependency property tests.</returns> public override IEnumerable <DependencyPropertyTestMethod> GetDependencyPropertyTests() { List <DependencyPropertyTestMethod> tests = new List <DependencyPropertyTestMethod>(base.GetDependencyPropertyTests()); tests.RemoveTests(ContentProperty.DoesNotChangeVisualStateTest(null, "Test")); return(tests); }