Пример #1
0
        private TableSectionStyle GetTableSectionStyle()
        {
            TableSectionStyle tss = new TableSectionStyle();

            tss.Visible = false;
            return(tss);
        }
Пример #2
0
        public void MergeWith_Self()
        {
            TableSectionStyle tss = GetTableSectionStyle();

            tss.MergeWith(tss);
            Assert.IsFalse(tss.Visible, "Visible");
        }
Пример #3
0
        public void CopyFrom_Self()
        {
            TableSectionStyle tss = GetTableSectionStyle();

            tss.CopyFrom(tss);
            Assert.IsFalse(tss.Visible, "Visible");
        }
Пример #4
0
        public void MergeWith()
        {
            TableSectionStyle tss = new TableSectionStyle();

            tss.Visible = true;

            tss.MergeWith(GetTableSectionStyle());

            Assert.IsTrue(tss.Visible, "Visible");
        }
Пример #5
0
        public void CopyFrom()
        {
            TableSectionStyle tss = GetTableSectionStyle();

            tss.Visible = true;

            tss.CopyFrom(GetTableSectionStyle());
            // BUG - CopyFrom isn't overriden !!!
            Assert.IsTrue(tss.Visible, "Visible");
        }
Пример #6
0
        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");
        }