Skip to content

Commit 7857e1d

Browse files
committed
格式化
1 parent 86ba8a2 commit 7857e1d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/DotNetCampus.CommandLine.Tests/CommandMatching/CommandAttributeTests.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
using DotNetCampus.Cli.Tests.ParsingStyles;
22
using DotNetCampus.CommandLine.FakeObjects;
33
using Microsoft.VisualStudio.TestTools.UnitTesting;
4-
using S = DotNetCampus.Cli.Tests.ParsingStyles.TestCommandLineStyle;
54

65
namespace DotNetCampus.Cli.Tests.CommandMatching;
76

87
[TestClass]
98
public class CommandAttributeTests
109
{
1110
[TestMethod]
12-
[DataRow(new[] { "--option=value" }, nameof(CommandObject0InAnotherAssembly), S.Flexible, DisplayName = "[Flexible]")]
13-
[DataRow(new[] { "test", "--option=value" }, nameof(CommandObject1InAnotherAssembly), S.Flexible, DisplayName = "[Flexible]")]
14-
[DataRow(new[] { "command", "in-another-assembly", "--option=value" }, nameof(CommandObject2InAnotherAssembly), S.Flexible, DisplayName = "[Flexible]")]
15-
public void MatchCommand(string[] args, string expectedCommand, S style)
11+
[DataRow(new[] { "--option=value" }, nameof(CommandObject0InAnotherAssembly), TestCommandLineStyle.Flexible,
12+
DisplayName = "[Flexible] --option=value")]
13+
[DataRow(new[] { "test", "--option=value" }, nameof(CommandObject1InAnotherAssembly), TestCommandLineStyle.Flexible,
14+
DisplayName = "[Flexible] test --option=value")]
15+
[DataRow(new[] { "command", "in-another-assembly", "--option=value" }, nameof(CommandObject2InAnotherAssembly), TestCommandLineStyle.Flexible,
16+
DisplayName = "[Flexible] command in-another-assembly --option=value")]
17+
public void MatchCommand(string[] args, string expectedCommand, TestCommandLineStyle style)
1618
{
1719
// Arrange
1820
(string? TypeName, string? Value) matched = default;

0 commit comments

Comments
 (0)