mirror of
https://github.com/SabreTools/SabreTools.CommandLine.git
synced 2026-04-19 04:31:11 +00:00
Add tests around Windows newlines
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user