public void Constructor_Default() { TestTableSectionStyle tss = new TestTableSectionStyle(); DefaultProperties(tss); NullProperties(tss); }
public void CopyFrom_Empty() { TestTableSectionStyle tss = new TestTableSectionStyle(); tss.CopyFrom(new TableSectionStyle()); DefaultProperties(tss); }
public void MergeWith_Empty() { TestTableSectionStyle tss = new TestTableSectionStyle(); tss.MergeWith(new TableSectionStyle()); DefaultProperties(tss); }
private void DefaultProperties(TestTableSectionStyle tss) { Assert.AreEqual(0, tss.StateBag.Count, "ViewState.Count"); Assert.IsTrue(tss.Visible, "Visible"); Assert.AreEqual(0, tss.StateBag.Count, "ViewState.Count-2"); tss.Reset(); Assert.AreEqual(0, tss.StateBag.Count, "Reset"); }
private void DefaultProperties (TestTableSectionStyle tss) { Assert.AreEqual (0, tss.StateBag.Count, "ViewState.Count"); Assert.IsTrue (tss.Visible, "Visible"); Assert.AreEqual (0, tss.StateBag.Count, "ViewState.Count-2"); tss.Reset (); Assert.AreEqual (0, tss.StateBag.Count, "Reset"); }
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"); }
private void NullProperties(TestTableSectionStyle tss) { Assert.IsTrue(tss.Empty, "Empty"); tss.Visible = false; Assert.IsFalse(tss.Visible, "Visible"); Assert.IsTrue(tss.Empty, "!Empty"); // strange !!! Assert.AreEqual(1, tss.StateBag.Count, "ViewState.Count-1"); tss.Reset(); // strange results because TableSectionStyle doesn't override // Reset Assert.AreEqual(1, tss.StateBag.Count, "Reset"); Assert.IsTrue(tss.Empty, "Empty/Reset"); }
private void NullProperties (TestTableSectionStyle tss) { Assert.IsTrue (tss.Empty, "Empty"); tss.Visible = false; Assert.IsFalse (tss.Visible, "Visible"); Assert.IsTrue (tss.Empty, "!Empty"); // strange !!! Assert.AreEqual (1, tss.StateBag.Count, "ViewState.Count-1"); tss.Reset (); // strange results because TableSectionStyle doesn't override // Reset Assert.AreEqual (1, tss.StateBag.Count, "Reset"); Assert.IsTrue (tss.Empty, "Empty/Reset"); }
public void Constructor_Default () { TestTableSectionStyle tss = new TestTableSectionStyle (); DefaultProperties (tss); NullProperties (tss); }
public void MergeWith_Empty () { TestTableSectionStyle tss = new TestTableSectionStyle (); tss.MergeWith (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); }