Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit a115df9

Browse files
committed
Adjust help message test expectations to match new parser
1 parent 34d0900 commit a115df9

File tree

8 files changed

+15
-45
lines changed

8 files changed

+15
-45
lines changed

test/dotnet-add-reference.Tests/GivenDotnetAddReference.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ namespace Microsoft.DotNet.Cli.Add.Reference.Tests
1515
{
1616
public class GivenDotnetAddReference : TestBase
1717
{
18-
private const string HelpText = @".NET Add Project to Project reference Command
19-
20-
Usage: dotnet add <PROJECT> reference [options] <args>
18+
private const string HelpText = @"Usage: dotnet add <PROJECT> reference [options] <args>
2119
2220
Arguments:
2321
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@@ -28,9 +26,7 @@ public class GivenDotnetAddReference : TestBase
2826
-f, --framework <FRAMEWORK> Add reference only when targeting a specific framework
2927
";
3028

31-
private const string AddCommandHelpText = @".NET Add Command
32-
33-
Usage: dotnet add [options] <PROJECT> [command]
29+
private const string AddCommandHelpText = @"Usage: dotnet add [options] <PROJECT> [command]
3430
3531
Arguments:
3632
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetHelpCommand.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ namespace Microsoft.DotNet.Help.Tests
1111
public class GivenThatIWantToShowHelpForDotnetHelpCommand : TestBase
1212
{
1313
private const string HelpText =
14-
@".NET CLI help utility
15-
16-
Usage: dotnet help [options] <COMMAND_NAME>
14+
@"Usage: dotnet help [options] <COMMAND_NAME>
1715
1816
Arguments:
1917
<COMMAND_NAME> CLI command for which to view more detailed help.

test/dotnet-list-reference.Tests/GivenDotnetListReference.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.List.Reference.Tests
1414
{
1515
public class GivenDotnetListReference : TestBase
1616
{
17-
private const string HelpText = @".NET Core Project-to-Project dependency viewer
18-
19-
Usage: dotnet list <PROJECT> reference [options]
17+
private const string HelpText = @"Usage: dotnet list <PROJECT> reference [options]
2018
2119
Arguments:
2220
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@@ -25,9 +23,7 @@ public class GivenDotnetListReference : TestBase
2523
-h, --help Show help information.
2624
";
2725

28-
private const string ListCommandHelpText = @".NET List Command
29-
30-
Usage: dotnet list [options] <PROJECT> [command]
26+
private const string ListCommandHelpText = @"Usage: dotnet list [options] <PROJECT> [command]
3127
3228
Arguments:
3329
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

test/dotnet-remove-package.Tests/GivenDotnetRemovePackage.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ namespace Microsoft.DotNet.Cli.Remove.Package.Tests
1212
{
1313
public class GivenDotnetRemovePackage : TestBase
1414
{
15-
private const string HelpText = @".NET Remove Package reference Command.
16-
17-
Usage: dotnet remove <PROJECT> package [options] <PACKAGE_NAME>
15+
private const string HelpText = @"Usage: dotnet remove <PROJECT> package [options] <PACKAGE_NAME>
1816
1917
Arguments:
2018
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@@ -24,9 +22,7 @@ public class GivenDotnetRemovePackage : TestBase
2422
-h, --help Show help information.
2523
";
2624

27-
private const string RemoveCommandHelpText = @".NET Remove Command
28-
29-
Usage: dotnet remove [options] <PROJECT> [command]
25+
private const string RemoveCommandHelpText = @"Usage: dotnet remove [options] <PROJECT> [command]
3026
3127
Arguments:
3228
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

test/dotnet-remove-reference.Tests/GivenDotnetRemoveP2P.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.Remove.Reference.Tests
1414
{
1515
public class GivenDotnetRemoveReference : TestBase
1616
{
17-
private const string HelpText = @".NET Remove Project to Project reference Command
18-
19-
Usage: dotnet remove <PROJECT> reference [options] <args>
17+
private const string HelpText = @"Usage: dotnet remove <PROJECT> reference [options] <args>
2018
2119
Arguments:
2220
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@@ -27,9 +25,7 @@ public class GivenDotnetRemoveReference : TestBase
2725
-f, --framework <FRAMEWORK> Remove reference only when targeting a specific framework
2826
";
2927

30-
private const string RemoveCommandHelpText = @".NET Remove Command
31-
32-
Usage: dotnet remove [options] <PROJECT> [command]
28+
private const string RemoveCommandHelpText = @"Usage: dotnet remove [options] <PROJECT> [command]
3329
3430
Arguments:
3531
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

test/dotnet-sln-add.Tests/GivenDotnetSlnAdd.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ namespace Microsoft.DotNet.Cli.Sln.Add.Tests
1616
{
1717
public class GivenDotnetSlnAdd : TestBase
1818
{
19-
private string HelpText = @".NET Add project(s) to a solution file Command
20-
21-
Usage: dotnet sln <SLN_FILE> add [options] <args>
19+
private string HelpText = @"Usage: dotnet sln <SLN_FILE> add [options] <args>
2220
2321
Arguments:
2422
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.
@@ -28,9 +26,7 @@ public class GivenDotnetSlnAdd : TestBase
2826
-h, --help Show help information.
2927
";
3028

31-
private const string SlnCommandHelpText = @".NET modify solution file command
32-
33-
Usage: dotnet sln [options] <SLN_FILE> [command]
29+
private const string SlnCommandHelpText = @"Usage: dotnet sln [options] <SLN_FILE> [command]
3430
3531
Arguments:
3632
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.

test/dotnet-sln-list.Tests/GivenDotnetSlnList.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.Sln.List.Tests
1414
{
1515
public class GivenDotnetSlnList : TestBase
1616
{
17-
private const string HelpText = @".NET List project(s) in a solution file Command
18-
19-
Usage: dotnet sln <SLN_FILE> list [options]
17+
private const string HelpText = @"Usage: dotnet sln <SLN_FILE> list [options]
2018
2119
Arguments:
2220
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.
@@ -25,9 +23,7 @@ public class GivenDotnetSlnList : TestBase
2523
-h, --help Show help information.
2624
";
2725

28-
private const string SlnCommandHelpText = @".NET modify solution file command
29-
30-
Usage: dotnet sln [options] <SLN_FILE> [command]
26+
private const string SlnCommandHelpText = @"Usage: dotnet sln [options] <SLN_FILE> [command]
3127
3228
Arguments:
3329
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.

test/dotnet-sln-remove.Tests/GivenDotnetSlnRemove.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.Sln.Remove.Tests
1414
{
1515
public class GivenDotnetSlnRemove : TestBase
1616
{
17-
private const string HelpText = @".NET Remove project(s) from a solution file Command
18-
19-
Usage: dotnet sln <SLN_FILE> remove [options] <args>
17+
private const string HelpText = @"Usage: dotnet sln <SLN_FILE> remove [options] <args>
2018
2119
Arguments:
2220
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.
@@ -26,9 +24,7 @@ public class GivenDotnetSlnRemove : TestBase
2624
-h, --help Show help information.
2725
";
2826

29-
private const string SlnCommandHelpText = @".NET modify solution file command
30-
31-
Usage: dotnet sln [options] <SLN_FILE> [command]
27+
private const string SlnCommandHelpText = @"Usage: dotnet sln [options] <SLN_FILE> [command]
3228
3329
Arguments:
3430
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.

0 commit comments

Comments
 (0)