Skip to content

Commit 6734e95

Browse files
danmoseleygithub-actions
authored andcommitted
More tests
1 parent 7654b69 commit 6734e95

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

tests/Aspire.Hosting.Tests/ExecutableResourceTests.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace Aspire.Hosting.Tests;
1010

1111
public class ExecutableResourceTests
1212
{
13+
// comment to trigger build
1314
[Fact]
1415
public async Task AddExecutableWithArgs()
1516
{
@@ -82,25 +83,6 @@ public async Task AddExecutableWithArgs()
8283
Assert.Equal(expectedManifest, manifest.ToString());
8384
}
8485

85-
[Fact]
86-
public void ExecutableResourceNullCommand()
87-
=> Assert.Throws<ArgumentNullException>("command", () => new ExecutableResource("name", command: null!, workingDirectory: "."));
88-
89-
[Fact]
90-
public void ExecutableResourceEmptyCommand()
91-
=> Assert.Throws<ArgumentException>("command", () => new ExecutableResource("name", command: "", workingDirectory: "."));
92-
93-
[Fact]
94-
public void ExecutableResourceNullWorkingDirectory()
95-
=> Assert.Throws<ArgumentNullException>("workingDirectory", () => new ExecutableResource("name", command: "cmd", workingDirectory: null!));
96-
97-
[Fact]
98-
public void ExecutableResourceEmptyWorkingDirectory()
99-
{
100-
var er = new ExecutableResource("name", command: "cmd", workingDirectory: "");
101-
Assert.Empty(er.WorkingDirectory);
102-
}
103-
10486
private sealed class TestResource(string name, string connectionString) : Resource(name), IResourceWithConnectionString
10587
{
10688
public ReferenceExpression ConnectionStringExpression =>

0 commit comments

Comments
 (0)