File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,10 @@ public void InvalidArgumentsExitCodeShouldNotBeZero()
39
39
{
40
40
using ( var fixture = new EmptyRepositoryFixture ( ) )
41
41
{
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 ) ;
54
42
var result = GitVersionHelper . ExecuteIn ( fixture . RepositoryPath , arguments : " /invalid-argument" ) ;
55
43
56
44
result . ExitCode . ShouldBe ( 1 ) ;
57
- result . Output . ShouldContain ( "Failed to parse arguments " ) ;
45
+ result . Output . ShouldContain ( "Could not parse command line parameter '/invalid-argument' " ) ;
58
46
}
59
47
}
60
48
}
You can’t perform that action at this time.
0 commit comments