Skip to content

Commit

Permalink
Merge branch 'main' into add-empty-nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 14, 2024
2 parents 083d51b + 7bff607 commit 3bdc6de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,23 @@ public void UseFile()
#endregion
}

#if NET9_0

[Test]
public async Task WriteExtensions()
{
var md = Path.Combine(SolutionDirectoryFinder.Find(), "extensions.include.md");
File.Delete(md);
using var writer = File.CreateText(md);
await using var writer = File.CreateText(md);
await WriteCategory(writer, "Archive", AllFiles.Archives);
await WriteCategory(writer, "Document", AllFiles.Documents);
await WriteCategory(writer, "Image", AllFiles.Images);
await WriteCategory(writer, "Sheet", AllFiles.Sheets);
await WriteCategory(writer, "Slide", AllFiles.Slides);
}

#endif

static async Task WriteCategory(StreamWriter writer, string category, IReadOnlyDictionary<string, EmptyFile> files)
{
await writer.WriteLineAsync("");
Expand Down

0 comments on commit 3bdc6de

Please sign in to comment.