Skip to content

Commit 0237e40

Browse files
authored
Test args after dotnet file.cs (#49875)
1 parent 5c29a42 commit 0237e40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/dotnet.Tests/CommandTests/Run/RunFileTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ Release config
158158
.And.HaveStdOut("""
159159
Hello from Program
160160
""");
161+
162+
new DotnetCommand(Log, "Program.cs", "arg1", "arg2")
163+
.WithWorkingDirectory(testInstance.Path)
164+
.Execute()
165+
.Should().Pass()
166+
.And.HaveStdOut("""
167+
echo args:arg1;arg2
168+
Hello from Program
169+
Release config
170+
""");
161171
}
162172

163173
/// <summary>

0 commit comments

Comments
 (0)