Ejemplo n.º 1
0
		public void TypeofExportShouldBeExportContainer ()
		{
			BaseRowItem bri = new BaseRowItem();
			BaseExportColumn bec = bri.CreateExportColumn();
			Type t = typeof(ExportContainer);
			Assert.AreEqual(t,bec.GetType(),"Type should be 'ExportContainer");
		}
Ejemplo n.º 2
0
		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);                 
		}
Ejemplo n.º 3
0
		public void ExportColumnIsNotNull ()
		{
			BaseRowItem bri = new BaseRowItem();
			BaseExportColumn bec = bri.CreateExportColumn();
			Assert.IsNotNull(bec);
		}
Ejemplo n.º 4
0
		public void ToStringOverride ()
		{
			BaseRowItem bri = new BaseRowItem();
			Assert.AreEqual ("BaseRowItem",bri.ToString(),"ToString override");
		}
Ejemplo n.º 5
0
		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'");
		}
Ejemplo n.º 6
0
		public void DefaultConstructur()
		{
			BaseRowItem bri = new BaseRowItem();
			Assert.IsNotNull(bri,"baseRowItem should not be null");
		}
Ejemplo n.º 7
0
        public void DefaultConstructur()
        {
            BaseRowItem bri = new BaseRowItem();

            Assert.IsNotNull(bri, "baseRowItem should not be null");
        }
Ejemplo n.º 8
0
		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;
		}