Make report writing work with streams

This commit is contained in:
Matt Nadareski
2025-04-14 21:16:45 -04:00
parent 8897fe0f7a
commit d5fb8414d4
7 changed files with 57 additions and 82 deletions

View File

@@ -234,13 +234,13 @@ namespace SabreTools.DatTools.Test
}
[Theory]
[InlineData(StatReportFormat.None, typeof(Reports.Formats.ConsoleOutput))]
[InlineData(StatReportFormat.None, typeof(Reports.Formats.Textfile))]
[InlineData(StatReportFormat.Textfile, typeof(Reports.Formats.Textfile))]
[InlineData(StatReportFormat.CSV, typeof(Reports.Formats.CommaSeparatedValue))]
[InlineData(StatReportFormat.HTML, typeof(Reports.Formats.Html))]
[InlineData(StatReportFormat.SSV, typeof(Reports.Formats.SemicolonSeparatedValue))]
[InlineData(StatReportFormat.TSV, typeof(Reports.Formats.TabSeparatedValue))]
[InlineData((StatReportFormat)0xFF, typeof(Reports.Formats.ConsoleOutput))]
[InlineData((StatReportFormat)0xFF, typeof(Reports.Formats.Textfile))]
public void CreateReportTest(StatReportFormat reportFormat, Type expected)
{
var report = Parser.CreateReport(reportFormat, []);