Skip to content

Commit

Permalink
Upgrade NPOI to 2.7.1 (#139)
Browse files Browse the repository at this point in the history
* Update publish-nuget.yml

* Upgrade NPOI to 2.7.1

---------

Co-authored-by: Donny Tian <[email protected]>
Co-authored-by: daichenjie <[email protected]>
  • Loading branch information
3 people authored Nov 16, 2024
1 parent e48f682 commit abab503
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Publish
- name: publish on version change
id: publish_nuget
uses: alirezanet/publish-nuget@v3.0.4
uses: alirezanet/publish-nuget@v3.1.0
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: Npoi.Mapper/src/Npoi.Mapper/Npoi.Mapper.csproj
Expand Down
2 changes: 1 addition & 1 deletion Npoi.Mapper/src/Npoi.Mapper/Npoi.Mapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<ItemGroup>
<PackageReference Include="LogicExtensions" Version="0.0.3" />
<PackageReference Include="NPOI" Version="2.6.2" />
<PackageReference Include="NPOI" Version="2.7.1" />
</ItemGroup>

<ItemGroup Label="SourceLink">
Expand Down
6 changes: 3 additions & 3 deletions Npoi.Mapper/test/ExportGeneralTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public void MergeToExistedRowsTest()
// Assert
var sheet = exporter.Workbook.GetSheet(sheetName);
Assert.AreEqual(sampleObj.GeneralProperty, sheet.GetRow(4).GetCell(1).StringCellValue);
Assert.AreEqual(sampleObj.DateProperty.Date, sheet.GetRow(4).GetCell(2).DateCellValue.Date);
Assert.AreEqual(sampleObj.DateProperty.Date, sheet.GetRow(4).GetCell(2).DateCellValue?.Date);
File.Delete(existingFile);
}

Expand All @@ -300,7 +300,7 @@ public void PutAppendRowTest()
// Assert
var sheet = workbook.GetSheet(sheetName);
Assert.AreEqual(sampleObj.GeneralProperty, sheet.GetRow(4).GetCell(1).StringCellValue);
Assert.AreEqual(sampleObj.DateProperty.Date, sheet.GetRow(4).GetCell(2).DateCellValue.Date);
Assert.AreEqual(sampleObj.DateProperty.Date, sheet.GetRow(4).GetCell(2).DateCellValue?.Date);
File.Delete(existingFile);
}

Expand Down Expand Up @@ -328,7 +328,7 @@ public void PutOverwriteRowTest()
var row = sheet.GetRow(1);
Assert.AreEqual(1, sheet.LastRowNum);
Assert.AreEqual(sampleObj.GeneralProperty, row.GetCell(1).StringCellValue);
Assert.AreEqual(sampleObj.DateProperty.Date, row.GetCell(2).DateCellValue.Date);
Assert.AreEqual(sampleObj.DateProperty.Date, row.GetCell(2).DateCellValue?.Date);
}

[Test]
Expand Down

0 comments on commit abab503

Please sign in to comment.