public void TypeofExportShouldBeExportContainer () { BaseRowItem bri = new BaseRowItem(); BaseExportColumn bec = bri.CreateExportColumn(); Type t = typeof(ExportContainer); Assert.AreEqual(t,bec.GetType(),"Type should be 'ExportContainer"); }
public void RowValuesEqualExportedText () { BaseRowItem bri = new BaseRowItem(); ExportContainer ec = (ExportContainer)bri.CreateExportColumn(); Assert.AreEqual (0,ec.Items.Count,"Items.Count should BeforePrintEventArgs '0'"); Assert.AreEqual(bri.Size,ec.StyleDecorator.Size); }
public void ExportColumnIsNotNull () { BaseRowItem bri = new BaseRowItem(); BaseExportColumn bec = bri.CreateExportColumn(); Assert.IsNotNull(bec); }
public void ToStringOverride () { BaseRowItem bri = new BaseRowItem(); Assert.AreEqual ("BaseRowItem",bri.ToString(),"ToString override"); }
public void DefaultSettings() { BaseRowItem bri = new BaseRowItem(); Assert.IsNotNull(bri.Items,"Items should not be 'null'"); Assert.AreEqual(0,bri.Items.Count,"Items.Count should be '0'"); }
public void DefaultConstructur() { BaseRowItem bri = new BaseRowItem(); Assert.IsNotNull(bri,"baseRowItem should not be null"); }
public void DefaultConstructur() { BaseRowItem bri = new BaseRowItem(); Assert.IsNotNull(bri, "baseRowItem should not be null"); }
private BaseSection ConfigureSectionWithRow () { BaseSection section = new BaseSection(); BaseRowItem row = new BaseRowItem(); BaseTextItem bti = new BaseTextItem{ Name = "TextItem" }; BaseImageItem bii = new BaseImageItem(){ Name = "ImageItem" }; row.Items.Add(bti); row.Items.Add(bii); section.Items.Add(row); return section; }