From 69c904672c503cd5d7ee4801876ae0930ea112c4 Mon Sep 17 00:00:00 2001 From: Tim Lee Date: Mon, 23 Dec 2024 10:40:44 +0800 Subject: [PATCH] Update TestXSSFSheet.cs --- testcases/ooxml/XSSF/UserModel/TestXSSFSheet.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testcases/ooxml/XSSF/UserModel/TestXSSFSheet.cs b/testcases/ooxml/XSSF/UserModel/TestXSSFSheet.cs index 9082d2e95..2f60e6b8f 100644 --- a/testcases/ooxml/XSSF/UserModel/TestXSSFSheet.cs +++ b/testcases/ooxml/XSSF/UserModel/TestXSSFSheet.cs @@ -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"))); @@ -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")));