public void Columns_ConstructorTest() { ColumnsStyle target = new ColumnsStyle(); Assert.IsNotNull(target); Assert.AreEqual(StyleKeys.ColumnItemKey, target.ItemKey); }
public void Columns_AlleyWidthTest() { ColumnsStyle target = new ColumnsStyle(); Assert.AreEqual(ColumnsStyle.DefaultAlleyWidth, target.AlleyWidth); PDFUnit expected = ColumnsStyle.DefaultAlleyWidth + 20; target.AlleyWidth = expected; Assert.AreEqual(expected, target.AlleyWidth); expected += 20; target.AlleyWidth = expected; Assert.AreEqual(expected, target.AlleyWidth); target.RemoveAlleyWidth(); Assert.AreEqual(ColumnsStyle.DefaultAlleyWidth, target.AlleyWidth); expected = ColumnsStyle.DefaultAlleyWidth; target.AlleyWidth = expected; Assert.AreEqual(expected, target.AlleyWidth); }
public void Columns_AutoFlowTest() { ColumnsStyle target = new ColumnsStyle(); Assert.AreEqual(true, target.AutoFlow); bool expected = true; target.AutoFlow = expected; Assert.AreEqual(expected, target.AutoFlow); expected = false; target.AutoFlow = expected; Assert.AreEqual(expected, target.AutoFlow); target.RemoveAutoFlow(); Assert.AreEqual(true, target.AutoFlow); expected = true; target.AutoFlow = expected; Assert.AreEqual(expected, target.AutoFlow); }
public void Columns_ColumnCountTest() { ColumnsStyle target = new ColumnsStyle(); Assert.AreEqual(1, target.ColumnCount); int expected = 2; target.ColumnCount = expected; Assert.AreEqual(expected, target.ColumnCount); expected += 4; target.ColumnCount = expected; Assert.AreEqual(expected, target.ColumnCount); target.RemoveColumnCount(); Assert.AreEqual(1, target.ColumnCount); expected = 1; target.ColumnCount = expected; Assert.AreEqual(expected, target.ColumnCount); }