Skip to content

Commit 8c8ab03

Browse files
committed
.
1 parent 345ee80 commit 8c8ab03

File tree

8 files changed

+23
-202
lines changed

8 files changed

+23
-202
lines changed

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"WebFetch(domain:raw.githubusercontent.com)",
66
"WebFetch(domain:api.github.com)",
77
"Bash(git restore:*)",
8-
"Bash(dotnet build:*)"
8+
"Bash(dotnet build:*)",
9+
"Bash([ -d \"D:\\Code\\VerifyTests\\Verify.OpenXml\\src\\Verify.OpenXml\\Converters\" ])"
910
]
1011
}
1112
}

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649;CA1416;NU1608;NU1109</NoWarn>
5-
<Version>0.1.0-beta.1</Version>
5+
<Version>0.1.0</Version>
66
<LangVersion>preview</LangVersion>
77
<AssemblyVersion>1.0.0</AssemblyVersion>
88
<PackageTags>OpenXML, Verify</PackageTags>

src/Verify.OpenXml.sln

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

src/Verify.OpenXml.slnx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Solution>
2+
<Folder Name="/Solution Items/">
3+
<File Path="../.gitattributes" />
4+
<File Path="../.gitignore" />
5+
<File Path="../docs/intro.include.md" />
6+
<File Path="../docs/zzz.include.md" />
7+
<File Path="../readme.md" />
8+
<File Path=".editorconfig" />
9+
<File Path="Directory.Build.props" />
10+
<File Path="Directory.Packages.props" />
11+
<File Path="global.json" />
12+
<File Path="mdsnippets.json" />
13+
<File Path="nuget.md" />
14+
</Folder>
15+
<Project Path="Tests/Tests.csproj" />
16+
<Project Path="Verify.OpenXml/Verify.OpenXml.csproj" />
17+
</Solution>

src/Verify.OpenXml/GlobalUsings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// Global using directives
22

3+
global using Argon;
4+
global using DeterministicIoPackaging;
35
global using DocumentFormat.OpenXml.Packaging;
46
global using DocumentFormat.OpenXml.Spreadsheet;

src/Verify.OpenXml/NumberFormat.cs

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

src/Verify.OpenXml/VerifyOpenXml.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
using Argon;
2-
using DeterministicIoPackaging;
3-
using DocumentFormat.OpenXml;
4-
5-
namespace VerifyTests;
1+
namespace VerifyTests;
62

73
public static class VerifyOpenXml
84
{
9-
[ThreadStatic]
10-
static SpreadsheetDocument? currentDocument;
11-
12-
internal static List<JsonConverter> converters = [];
13-
145
public static bool Initialized { get; private set; }
156

16-
internal static SpreadsheetDocument? CurrentDocument => currentDocument;
17-
187
public static void Initialize()
198
{
209
if (Initialized)
@@ -26,7 +15,6 @@ public static void Initialize()
2615

2716
VerifierSettings.RegisterStreamConverter("xlsx", (_, target, settings) => Convert(target, settings));
2817
VerifierSettings.RegisterFileConverter<SpreadsheetDocument>(Convert);
29-
VerifierSettings.AddExtraSettings(_ => _.Converters.AddRange(converters));
3018
}
3119

3220
static ConversionResult Convert(Stream stream, IReadOnlyDictionary<string, object> settings)
@@ -92,7 +80,6 @@ static ConversionResult Convert(SpreadsheetDocument document, IReadOnlyDictionar
9280

9381
static IEnumerable<(StringBuilder Csv, string? Name)> Convert(SpreadsheetDocument document)
9482
{
95-
currentDocument = document;
9683
var workbookPart = document.WorkbookPart!;
9784
var counter = Counter.Current;
9885

0 commit comments

Comments
 (0)