public void CopyFrom_IsEmpty() { TestTableSectionStyle c = new TestTableSectionStyle(); TableSectionStyle s = new TableSectionStyle(); s.BorderWidth = Unit.Empty; c.CopyFrom(s); Assert.IsTrue(c.Empty, "A1"); s.Visible = true; c.CopyFrom(s); // BUG -- setting Visible doesn't change the "emptyness" of this class ;-) Assert.IsTrue(c.Empty, "A2"); }
public void CopyFrom_Empty() { TestTableSectionStyle tss = new TestTableSectionStyle(); tss.CopyFrom(new TableSectionStyle()); DefaultProperties(tss); }
public void CopyFrom_IsEmpty () { TestTableSectionStyle c = new TestTableSectionStyle (); TableSectionStyle s = new TableSectionStyle (); s.BorderWidth = Unit.Empty; c.CopyFrom (s); Assert.IsTrue (c.Empty, "A1"); s.Visible = true; c.CopyFrom (s); // BUG -- setting Visible doesn't change the "emptyness" of this class ;-) Assert.IsTrue (c.Empty, "A2"); }
public void CopyFrom_Empty () { TestTableSectionStyle tss = new TestTableSectionStyle (); tss.CopyFrom (new TableSectionStyle ()); DefaultProperties (tss); }