public void ApplyTemplate() { ConcreteControl poker = new ConcreteControl(); Assert.IsNull(poker.Template, "#1"); Assert.IsNull(poker.Style); Assert.IsFalse(poker.ApplyTemplate(), "#2"); Assert.IsNull(poker.Template, "#3"); Assert.IsNull(poker.Style, "#4"); }
public void MeasureAppliesTemplate() { ConcreteControl c = new ConcreteControl { CallBaseArrangeOverride = false, CallBaseMeasureOverride = false }; Assert.IsFalse(c.TemplateAppled, "#1"); c.Measure(new Size(100, 100)); Assert.IsFalse(c.TemplateAppled, "#2"); c.ApplyTemplate(); Assert.IsFalse(c.TemplateAppled, "#3"); }
public void MeasureAppliesTemplate () { ConcreteControl c = new ConcreteControl { CallBaseArrangeOverride = false, CallBaseMeasureOverride = false }; Assert.IsFalse (c.TemplateAppled, "#1"); c.Measure (new Size (100, 100)); Assert.IsFalse (c.TemplateAppled, "#2"); c.ApplyTemplate (); Assert.IsFalse (c.TemplateAppled, "#3"); }
public void ApplyTemplate () { ConcreteControl poker = new ConcreteControl (); Assert.IsNull (poker.Template, "#1"); Assert.IsNull (poker.Style); Assert.IsFalse (poker.ApplyTemplate (), "#2"); Assert.IsNull (poker.Template, "#3"); Assert.IsNull (poker.Style, "#4"); }