Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit cbe11a4

Browse files
Adding tests for mac versions
1 parent b8eb44f commit cbe11a4

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/tests/UnitTests/IO/LfsVersionOutputProcessorTests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ class LfsVersionOutputProcessorTests : BaseOutputProcessorTests
1111
{
1212
public static IEnumerable<TestCaseData> ShouldParseVersionOutputs_TestCases()
1313
{
14-
TestCaseData testCase;
15-
16-
testCase = new TestCaseData(
14+
yield return new TestCaseData(
1715
$"git-lfs/2.2.0 (GitHub; windows amd64; go 1.8.3; git a99f4b21){Environment.NewLine}",
18-
new Version(2, 2, 0));
16+
new Version(2, 2, 0)).SetName("Windows GitLFS 2.2.0");
1917

20-
testCase.SetName("Windows GitLFS 2.2.0");
21-
yield return testCase;
18+
yield return new TestCaseData(
19+
$"git-lfs/2.2.0 (GitHub; darwin amd64; go 1.8.3){Environment.NewLine}",
20+
new Version(2, 2, 0)).SetName("Mac GitLFS 2.2.0");
2221
}
2322

2423
[TestCaseSource(nameof(ShouldParseVersionOutputs_TestCases))]

src/tests/UnitTests/IO/VersionOutputProcessorTests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ class VersionOutputProcessorTests : BaseOutputProcessorTests
1313
{
1414
public static IEnumerable<TestCaseData> ShouldParseVersionOutputs_TestCases()
1515
{
16-
TestCaseData testCase;
17-
18-
testCase = new TestCaseData(
16+
yield return new TestCaseData(
1917
$"git version 2.11.1.windows.1{Environment.NewLine}",
20-
new Version(2, 11, 1));
18+
new Version(2, 11, 1)).SetName("Windows 2.11.1");
2119

22-
testCase.SetName("Windows 2.11.1");
23-
yield return testCase;
20+
yield return new TestCaseData(
21+
$"git version 2.12.2{Environment.NewLine}",
22+
new Version(2, 12, 2)).SetName("Mac 2.12.2");
2423
}
2524

2625
[TestCaseSource(nameof(ShouldParseVersionOutputs_TestCases))]

0 commit comments

Comments
 (0)