public void ApplyStyleToManagedDP() { StyledControl t = new StyledControl(); Style s = new Style(typeof(StyledControl)); s.Setters.Add(new Setter(StyledControl.PropProperty, 100)); t.Style = s; Assert.AreEqual(100, t.GetValue(StyledControl.PropProperty)); }