Skip to content

Commit

Permalink
Fix: add System prefix to System.Environment.NewLine, to avoid mi…
Browse files Browse the repository at this point in the history
…xing it with `GitVersion.Environment` class.
  • Loading branch information
Nenad Vicentic authored and arturcic committed Apr 12, 2021
1 parent c9821c2 commit 6e92156
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/GitVersion.App.Tests/ArgumentParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,12 @@ private static IEnumerable<TestCaseData> OverrideconfigWithInvalidOptionTestData
};
yield return new TestCaseData("assembly-versioning-scheme=WrongEnumValue")
{
ExpectedResult = $"Could not parse /overrideconfig option: assembly-versioning-scheme=WrongEnumValue. Ensure that 'value' is valid for specified 'key' enumeration: {Environment.NewLine}MajorMinorPatchTag{Environment.NewLine}MajorMinorPatch{Environment.NewLine}MajorMinor{Environment.NewLine}Major{Environment.NewLine}None{Environment.NewLine}"
ExpectedResult = $"Could not parse /overrideconfig option: assembly-versioning-scheme=WrongEnumValue. Ensure that 'value' is valid for specified 'key' enumeration: {System.Environment.NewLine}" +
$"MajorMinorPatchTag{System.Environment.NewLine}" +
$"MajorMinorPatch{System.Environment.NewLine}" +
$"MajorMinor{System.Environment.NewLine}" +
$"Major{System.Environment.NewLine}" +
$"None{System.Environment.NewLine}"
};
}

Expand Down

0 comments on commit 6e92156

Please sign in to comment.