Skip to content

Commit b385c98

Browse files
committed
.
1 parent daad054 commit b385c98

16 files changed

+115
-504
lines changed

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void Initialize() =>
5454
public Task VerifyExcel() =>
5555
VerifyFile("sample.xlsx");
5656
```
57-
<sup><a href='/src/Tests/Samples.cs#L4-L10' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyExcel' title='Start of snippet'>anchor</a></sup>
57+
<sup><a href='/src/Tests/Samples.cs#L6-L12' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyExcel' title='Start of snippet'>anchor</a></sup>
5858
<!-- endSnippet -->
5959

6060

@@ -70,24 +70,24 @@ public Task VerifyExcelStream()
7070
return Verify(stream, "xlsx");
7171
}
7272
```
73-
<sup><a href='/src/Tests/Samples.cs#L28-L37' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyExcelStream' title='Start of snippet'>anchor</a></sup>
73+
<sup><a href='/src/Tests/Samples.cs#L30-L39' title='Snippet source file'>snippet source</a> | <a href='#snippet-VerifyExcelStream' title='Start of snippet'>anchor</a></sup>
7474
<!-- endSnippet -->
7575

7676

7777
#### Verify a SpreadsheetDocument
7878

79-
<!-- snippet: SpreadsheetDocument -->
80-
<a id='snippet-SpreadsheetDocument'></a>
79+
<!-- snippet: XLWorkbook -->
80+
<a id='snippet-XLWorkbook'></a>
8181
```cs
8282
[Test]
83-
public Task VerifySpreadsheetDocument()
83+
public Task XLWorkbook()
8484
{
8585
using var stream = File.OpenRead("sample.xlsx");
86-
using var reader = SpreadsheetDocument.Open(stream, false);
86+
using var reader = new XLWorkbook(stream);
8787
return Verify(reader);
8888
}
8989
```
90-
<sup><a href='/src/Tests/Samples.cs#L16-L26' title='Snippet source file'>snippet source</a> | <a href='#snippet-SpreadsheetDocument' title='Start of snippet'>anchor</a></sup>
90+
<sup><a href='/src/Tests/Samples.cs#L18-L28' title='Snippet source file'>snippet source</a> | <a href='#snippet-XLWorkbook' title='Start of snippet'>anchor</a></sup>
9191
<!-- endSnippet -->
9292

9393

src/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
55
</PropertyGroup>
66
<ItemGroup>
7+
<PackageVersion Include="ClosedXML" Version="0.105.0" />
78
<PackageVersion Include="DocumentFormat.OpenXml" Version="3.3.0" />
89
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="28.0.0-beta.2" />
910
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />

src/Tests/Samples.MultipleSheets#Sheet1.verified.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
0,First Name,Last Name,Gender,Country,Date,Age,Id,Formula
2-
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594
2+
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,1594
33
2,Mara,Hashimoto,Female,Great Britain,2016-08-16,25,1582,1607
44
3,Philip,Gent,Male,France,2015-05-21,36,2587,2623
55
4,Kathleen,Hanner,Female,United States,2017-10-15,25,3549,3574

src/Tests/Samples.MultipleSheets.verified.txt

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,5 @@
22
SheetNames: [
33
Sheet1,
44
Sheet2
5-
],
6-
CellFormats: [
7-
{
8-
FontId: 0,
9-
FillId: 0,
10-
BorderId: 0,
11-
NumberFormatId: 0: General,
12-
FormatId: 0
13-
},
14-
{
15-
FontId: 1,
16-
FillId: 0,
17-
BorderId: 0,
18-
NumberFormatId: 0: General,
19-
FormatId: 0,
20-
ApplyFont: 1
21-
},
22-
{
23-
FontId: 2,
24-
FillId: 0,
25-
BorderId: 0,
26-
NumberFormatId: 0: General,
27-
FormatId: 0,
28-
ApplyFont: 1
29-
},
30-
{
31-
FontId: 2,
32-
FillId: 0,
33-
BorderId: 0,
34-
NumberFormatId: 14: m/d/yyyy,
35-
FormatId: 0,
36-
ApplyNumberFormat: 1,
37-
ApplyFont: 1
38-
},
39-
{
40-
FontId: 0,
41-
FillId: 0,
42-
BorderId: 0,
43-
NumberFormatId: 14: m/d/yyyy,
44-
FormatId: 0,
45-
ApplyNumberFormat: 1
46-
},
47-
{
48-
FontId: 3,
49-
FillId: 0,
50-
BorderId: 0,
51-
NumberFormatId: 0: General,
52-
FormatId: 0,
53-
ApplyFont: 1
54-
}
555
]
566
}

src/Tests/Samples.VerifyExcel.verified.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
0,First Name,Last Name,Gender,Country,Date,Age,Id,Formula
2-
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,G2+H21594
2+
1,Dulce,Abril,Female,United States,2017-10-15,32,1562,1594
33
2,Mara,Hashimoto,Female,Great Britain,2016-08-16,25,1582,1607
44
3,Philip,Gent,Male,France,2015-05-21,36,2587,2623
55
4,Kathleen,Hanner,Female,United States,2017-10-15,25,3549,3574
Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,5 @@
11
{
22
SheetNames: [
33
Sheet1
4-
],
5-
CellFormats: [
6-
{
7-
FontId: 0,
8-
FillId: 0,
9-
BorderId: 0,
10-
NumberFormatId: 0: General,
11-
FormatId: 0
12-
},
13-
{
14-
FontId: 1,
15-
FillId: 0,
16-
BorderId: 0,
17-
NumberFormatId: 0: General,
18-
FormatId: 0,
19-
ApplyFont: 1
20-
},
21-
{
22-
FontId: 2,
23-
FillId: 0,
24-
BorderId: 0,
25-
NumberFormatId: 0: General,
26-
FormatId: 0,
27-
ApplyFont: 1
28-
},
29-
{
30-
FontId: 2,
31-
FillId: 0,
32-
BorderId: 0,
33-
NumberFormatId: 14: m/d/yyyy,
34-
FormatId: 0,
35-
ApplyNumberFormat: 1,
36-
ApplyFont: 1
37-
},
38-
{
39-
FontId: 0,
40-
FillId: 0,
41-
BorderId: 0,
42-
NumberFormatId: 14: m/d/yyyy,
43-
FormatId: 0,
44-
ApplyNumberFormat: 1
45-
}
464
]
475
}

src/Tests/Samples.VerifySpreadsheetDocument.verified.csv

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/Tests/Samples.VerifySpreadsheetDocument.verified.txt

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


0 commit comments

Comments
 (0)