Skip to content

Commit

Permalink
Update TestXSSFSheet.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLee88 committed Dec 23, 2024
1 parent c61245b commit 69c9046
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testcases/ooxml/XSSF/UserModel/TestXSSFSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ public void ShiftRows_ShiftRowsWithVariousMergedRegions_RowsShiftedWithMergedReg
Assert.True(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("J11:K12")));

Assert.AreEqual("regionThatEndsWithinShiftedRows", sheet.GetRow(1).GetCell(11).StringCellValue);
Assert.True(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("L2:M3")));
Assert.False(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("L2:M3")));

Assert.AreEqual("regionThatEndsOnLastShiftedRow", sheet.GetRow(1).GetCell(13).StringCellValue);
Assert.True(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("N2:O4")));
Assert.False(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("N2:O4")));

Assert.AreEqual("regionThatEndsOutsideShiftedRows", sheet.GetRow(1).GetCell(15).StringCellValue);
Assert.True(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("P2:Q5")));
Assert.False(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("P2:Q5")));

Assert.AreEqual("reallyLongRegion", sheet.GetRow(1).GetCell(17).StringCellValue);
Assert.False(sheet.MergedRegions.Any(r => r.FormatAsString().Equals("R2:S12")));
Expand Down Expand Up @@ -180,13 +180,13 @@ public void ShiftRows_ShiftRowsWithVariousMergedRegions_RowsShiftedWithMergedReg
Assert.True(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("J11:K12")));

Assert.AreEqual("regionThatEndsWithinShiftedRows", sheetLoaded.GetRow(1).GetCell(11).StringCellValue);
Assert.True(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("L2:M3")));
Assert.False(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("L2:M3")));

Assert.AreEqual("regionThatEndsOnLastShiftedRow", sheetLoaded.GetRow(1).GetCell(13).StringCellValue);
Assert.True(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("N2:O4")));
Assert.False(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("N2:O4")));

Assert.AreEqual("regionThatEndsOutsideShiftedRows", sheetLoaded.GetRow(1).GetCell(15).StringCellValue);
Assert.True(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("P2:Q5")));
Assert.False(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("P2:Q5")));

Assert.AreEqual("reallyLongRegion", sheetLoaded.GetRow(1).GetCell(17).StringCellValue);
Assert.False(sheetLoaded.MergedRegions.Any(r => r.FormatAsString().Equals("R2:S12")));
Expand Down

0 comments on commit 69c9046

Please sign in to comment.