Skip to content

Commit fbec8f4

Browse files
committed
R# cleanup
1 parent 7f83733 commit fbec8f4

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/GitVersionExe.Tests/ExecCmdLineArgumentTest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
using System.IO;
2+
23
using GitVersion;
4+
35
using NUnit.Framework;
6+
47
using Shouldly;
58

69
[TestFixture]
710
public class ExecCmdLineArgumentTest
811
{
912
const string MsBuild = @"c:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe";
1013

14+
1115
[Test]
1216
public void RunExecViaCommandLine()
1317
{
@@ -32,6 +36,7 @@ public void RunExecViaCommandLine()
3236
}
3337
}
3438

39+
3540
[Test]
3641
public void InvalidArgumentsExitCodeShouldNotBeZero()
3742
{
@@ -49,13 +54,14 @@ public void InvalidArgumentsExitCodeShouldNotBeZero()
4954
</Target>
5055
</Project>";
5156
File.WriteAllText(buildFile, buildFileContent);
52-
var result = GitVersionHelper.ExecuteIn(fixture.RepositoryPath, arguments: " /invalid-argument");
57+
var result = GitVersionHelper.ExecuteIn(fixture.RepositoryPath, arguments : " /invalid-argument");
5358

5459
result.ExitCode.ShouldBe(1);
5560
result.Output.ShouldContain("Failed to parse arguments");
5661
}
5762
}
5863

64+
5965
[Test]
6066
public void UsesGitVersionConfigWhenCreatingDynamicRepository()
6167
{

src/GitVersionExe.Tests/GitVersionHelper.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,32 @@
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Text;
5+
56
using GitVersion.Helpers;
67

78
public static class GitVersionHelper
89
{
910
public static ExecutionResults ExecuteIn(string workingDirectory,
10-
string exec = null, string execArgs = null, string projectFile = null, string projectArgs = null,
11-
bool isTeamCity = false)
11+
string exec = null,
12+
string execArgs = null,
13+
string projectFile = null,
14+
string projectArgs = null,
15+
bool isTeamCity = false)
1216
{
1317
var logFile = Path.Combine(workingDirectory, "log.txt");
1418
var args = new ArgumentBuilder(workingDirectory, exec, execArgs, projectFile, projectArgs, logFile, isTeamCity);
1519
return ExecuteIn(args);
1620
}
1721

22+
1823
public static ExecutionResults ExecuteIn(string workingDirectory, string arguments, bool isTeamCity = false)
1924
{
2025
var logFile = Path.Combine(workingDirectory, "log.txt");
2126
var args = new ArgumentBuilder(workingDirectory, arguments, isTeamCity, logFile);
2227
return ExecuteIn(args);
2328
}
2429

30+
2531
static ExecutionResults ExecuteIn(ArgumentBuilder arguments)
2632
{
2733
var gitHubFlowVersion = Path.Combine(PathHelper.GetCurrentDirectory(), "GitVersion.exe");

0 commit comments

Comments
 (0)