public void HavingARowContainingACellAndBorder_WhenCalculatingLayout_ThenRowSizeIsEqualToTheCellSizePlusBorder()
        {
            CellX cellX1 = new CellX
            {
                Content = "value 1"
            };

            cellX1.CalculateLayout();
            DataGridBorderX dataGridBorderX = new DataGridBorderX
            {
                Template = BorderTemplate.PlusMinusBorderTemplate
            };
            RowX rowX = new RowX
            {
                Cells = new List <CellX>
                {
                    cellX1
                },
                Border = dataGridBorderX
            };

            rowX.CalculateLayout();

            Size expected = new Size(9, 1);

            Assert.AreEqual(expected, rowX.Size);
        }
        public void HavingARowContainingACellAndNoBorder_WhenCalculatingLayout_ThenRowSizeIsEqualToTheCellSize()
        {
            CellX cellX1 = new CellX
            {
                Content = "value 1"
            };

            cellX1.CalculateLayout();
            RowX rowX = new RowX
            {
                Cells = new List <CellX>
                {
                    cellX1
                }
            };

            rowX.CalculateLayout();

            Size expected = new Size(7, 1);

            Assert.AreEqual(expected, rowX.Size);
        }