Skip to content

Commit

Permalink
fix: Test case update
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanthcraft authored and DraviaVemal committed Jun 27, 2024
1 parent a1b5ddc commit 79ba4a2
Showing 1 changed file with 34 additions and 20 deletions.
54 changes: 34 additions & 20 deletions Tests/Presentation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1210,60 +1210,74 @@ private static TableRow[] CreateTableRowPayload(int rowCount = 5, int columnCoun
for (int j = 0; j < columnCount; j++)
{
uint colSpanVal = 0;
if(i == 5 && j == 0){
colSpanVal = 2;
} else if (i == 5 && j == 2){
colSpanVal = 3;
} else if (i == 5 && j == 5){
colSpanVal = 3;
}
uint rowSpanVal = 0;
if(i == 6 && j == 0){
TableBorderSettings borderColorSetting = new();

if (i == 5)
{
if (j == 0)
{
colSpanVal = 2;
}
else if (j == 2)
{
colSpanVal = 3;
}
else if (j == 5)
{
colSpanVal = 3;
}
}

if (i == 0 && j == 0)
{
rowSpanVal = 2;
} else if (i == 6 && j == 2){
}
else if (i == 6 && j == 2)
{
rowSpanVal = 2;
}
TableBorderSettings borderColorSetting = new(){};
if (i == 3 && j == 3) {
borderColorSetting = new()

if (i == 3 && j == 3)
{
borderColorSetting = new TableBorderSettings
{
leftBorder = new()
leftBorder = new ()
{
showBorder = true,
borderColor = "FF0000",
},
topBorder = new()
topBorder = new ()
{
showBorder = true,
borderColor = "FF0000",
width = 2
},
rightBorder = new()
rightBorder = new ()
{
showBorder = true,
borderColor = "FF0000",
},
bottomBorder = new()
bottomBorder = new ()
{
showBorder = true,
borderColor = "FF0000"
}
};
}


tableCells.Add(new()
tableCells.Add(new TableCell
{
textValue = $"Row {i + 1}, Column {j + 1}",
textColor = "FF0000",
fontSize = 12,
rowSpan = (uint)((i == 0 && j == 0) ? 3 : 0),
rowSpan = rowSpanVal,
columnSpan = colSpanVal,
borderSettings = borderColorSetting,
horizontalAlignment = G.HorizontalAlignmentValues.LEFT + (i % 4)
});
}
TableRow row = new()
TableRow row = new TableRow
{
height = 370840,
tableCells = tableCells
Expand Down

0 comments on commit 79ba4a2

Please sign in to comment.