Example #1
0
        public void AddColumnAndReturnsSelf()
        {
            var columnObject = new { };
            var row          = SectionRow.Column(columnObject);

            Assert.Equal(SectionRow, row);
            Assert.Equal(1, SectionRow.Columns.Count());
        }
Example #2
0
        public void ReturnObjectArrayOfColumnData()
        {
            var columnObject1 = new { Id = "obj1" };
            var columnObject2 = new { Id = "obj2" };

            SectionRow.Column(columnObject1).Column(columnObject2);

            SectionRow.Build();
            var columnData = (IEnumerable <object>)SectionRow.Build();

            Assert.Equal(2, SectionRow.Columns.Count());
            Assert.Equal(columnObject1, columnData.ElementAt(0));
            Assert.Equal(columnObject2, columnData.ElementAt(1));
        }
Example #3
0
        public void AcceptNullValue()
        {
            object columnObject = null;

            SectionRow.Column(columnObject);
        }