fix loc text dependent test

This commit is contained in:
jonsequitur 2017-01-30 07:39:28 -08:00
parent 43c9b363b0
commit 1a0adcbe5a
2 changed files with 15 additions and 2 deletions

View file

@ -9,7 +9,7 @@ namespace Microsoft.DotNet.Tools.Sln
public const string AddAppFullName = ".NET Add project(s) to a solution file Command";
public const string AddSubcommandHelpText = "Add one or more specified project(s) to the solution.";
public const string AddSubcommandHelpText = "Add one or more specified projects to the solution.";
public const string RemoveAppFullName = ".NET Remove project(s) from a solution file Command";

View file

@ -9,6 +9,7 @@ using System;
using System.IO;
using System.Linq;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.DotNet.Cli.Sln.Add.Tests
{
@ -25,8 +26,14 @@ Options:
-h|--help Show help information
Additional Arguments:
Add a specified project(s) to the solution.
Add one or more specified projects to the solution.
";
private ITestOutputHelper _output;
public GivenDotnetSlnAdd(ITestOutputHelper output)
{
_output = output;
}
private const string ExpectedSlnFileAfterAddingLibProj = @"
Microsoft Visual Studio Solution File, Format Version 12.00
@ -269,6 +276,12 @@ EndGlobal
.ExecuteWithCapturedOutput(@"sln App.sln add");
cmd.Should().Fail();
cmd.StdErr.Should().Be("You must specify at least one project to add.");
_output.WriteLine("[STD OUT]");
_output.WriteLine(cmd.StdOut);
_output.WriteLine("[HelpText]");
_output.WriteLine(HelpText);
cmd.StdOut.Should().BeVisuallyEquivalentTo(HelpText);
}