Use latest C# features

This commit is contained in:
Tyrrrz
2024-01-12 00:10:27 +02:00
parent 76e8d47e03
commit 6aa72e45e8
30 changed files with 186 additions and 390 deletions

View File

@@ -112,10 +112,7 @@ public class RoutingSpecs(ITestOutputHelper testOutput) : SpecsBase(testOutput)
.Build();
// Act
var exitCode = await application.RunAsync(
new[] { "cmd" },
new Dictionary<string, string>()
);
var exitCode = await application.RunAsync(["cmd"], new Dictionary<string, string>());
// Assert
exitCode.Should().Be(0);
@@ -170,7 +167,7 @@ public class RoutingSpecs(ITestOutputHelper testOutput) : SpecsBase(testOutput)
// Act
var exitCode = await application.RunAsync(
new[] { "cmd", "child" },
["cmd", "child"],
new Dictionary<string, string>()
);