Add Tests for incrementality
This commit is contained in:
parent
68d46fefad
commit
3a8ef0f5e9
33 changed files with 712 additions and 82 deletions
|
@ -3,8 +3,10 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.DotNet.Cli.Utils;
|
||||
|
||||
namespace Microsoft.DotNet.Tools.Test.Utilities
|
||||
{
|
||||
|
@ -55,5 +57,18 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
string.Equals("1", val, StringComparison.OrdinalIgnoreCase) ||
|
||||
string.Equals("on", val, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
protected void TestOutputExecutable(string outputDir, string executableName, string expectedOutput)
|
||||
{
|
||||
var executablePath = Path.Combine(outputDir, executableName);
|
||||
|
||||
var executableCommand = new TestCommand(executablePath);
|
||||
|
||||
var result = executableCommand.ExecuteWithCapturedOutput("");
|
||||
|
||||
result.Should().HaveStdOut(expectedOutput);
|
||||
result.Should().NotHaveStdErr();
|
||||
result.Should().Pass();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue