From 6cd5cf947b28814c385d64ebd192eb87d4fb5602 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 5 Oct 2025 13:06:40 -0400 Subject: [PATCH] Add tests around Windows newlines --- SabreTools.CommandLine.Test/FeatureTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SabreTools.CommandLine.Test/FeatureTests.cs b/SabreTools.CommandLine.Test/FeatureTests.cs index 465ef2d..d0fdee8 100644 --- a/SabreTools.CommandLine.Test/FeatureTests.cs +++ b/SabreTools.CommandLine.Test/FeatureTests.cs @@ -107,8 +107,11 @@ namespace SabreTools.CommandLine.Test [Theory] [InlineData("Some long description that is normal", 2)] [InlineData("Some long description\nwith a newline", 3)] + [InlineData("Some long description\r\nwith a newline", 3)] [InlineData("Some long description\nwith\nmultiple\nnewlines", 5)] + [InlineData("Some long description\r\nwith\r\nmultiple\r\nnewlines", 5)] [InlineData("Some long description\n - With formatting", 3)] + [InlineData("Some long description\r\n - With formatting", 3)] [InlineData("Some long description with multiple spaces", 2)] public void FormatLongDescriptionTest(string longDescription, int expectedCount) {