Skip to content

Commit cbb3d1b

Browse files
committed
Reduced test to the bare minimum
1 parent 5a8519d commit cbb3d1b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/GitVersionExe.Tests/ExecCmdLineArgumentTest.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,10 @@ public void InvalidArgumentsExitCodeShouldNotBeZero()
3939
{
4040
using (var fixture = new EmptyRepositoryFixture())
4141
{
42-
fixture.MakeATaggedCommit("1.2.3");
43-
fixture.MakeACommit();
44-
45-
var buildFile = Path.Combine(fixture.RepositoryPath, "RunExecViaCommandLine.proj");
46-
File.Delete(buildFile);
47-
const string buildFileContent = @"<?xml version=""1.0"" encoding=""utf-8""?>
48-
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
49-
<Target Name=""OutputResults"">
50-
<Message Text=""GitVersion_FullSemVer: $(GitVersion_FullSemVer)""/>
51-
</Target>
52-
</Project>";
53-
File.WriteAllText(buildFile, buildFileContent);
5442
var result = GitVersionHelper.ExecuteIn(fixture.RepositoryPath, arguments: " /invalid-argument");
5543

5644
result.ExitCode.ShouldBe(1);
57-
result.Output.ShouldContain("Failed to parse arguments");
45+
result.Output.ShouldContain("Could not parse command line parameter '/invalid-argument'");
5846
}
5947
}
6048
}

0 commit comments

Comments
 (0)