Skip to content

Commit

Permalink
Merge pull request #166 from filzrev/fix-failed-test-issue-when-disab…
Browse files Browse the repository at this point in the history
…le-autocrlf

fix: Tests failed when line-end characters differ from OS default
  • Loading branch information
neuecc authored Feb 12, 2025
2 parents 077ca44 + 2a82c0a commit 5e8e7a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ConsoleAppFramework/ConsoleAppBaseCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class ConsoleAppBaseCode
#pragma warning disable
namespace ConsoleAppFramework;
using System;
using System.Text;
using System.Reflection;
Expand Down Expand Up @@ -307,7 +307,7 @@ static bool TryShowHelpOrVersion(ReadOnlySpan<string> args, int requiredParamete
if (args.Length == 0)
{
if (requiredParameterCount == 0) return false;
ShowHelp(helpId);
return true;
}
Expand Down Expand Up @@ -531,7 +531,7 @@ static bool TryShowHelpOrVersion(ReadOnlySpan<string> args, int requiredParamete
if (args.Length == 0)
{
if (requiredParameterCount == 0) return false;
ShowHelp(helpId);
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void Execute([StringSyntax("C#-test")] string code, string args, string e
}
OutputGeneratedCode(compilation);

stdout.ShouldBe(expected);
stdout.ShouldBe(expected, StringCompareShould.IgnoreLineEndings);
}

public string Error([StringSyntax("C#-test")] string code, string args, [CallerArgumentExpression("code")] string? codeExpr = null)
Expand Down

0 comments on commit 5e8e7a2

Please sign in to comment.