preview of single unit test for dotnet build
This commit is contained in:
parent
dfde101b7c
commit
9c00966956
5 changed files with 120 additions and 24 deletions
21
test/dotnet-msbuild.Tests/GivenDotnetBuildInvocation.cs
Normal file
21
test/dotnet-msbuild.Tests/GivenDotnetBuildInvocation.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using Microsoft.DotNet.Tools.Build;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using FluentAssertions;
|
||||
using Xunit;
|
||||
using System.IO;
|
||||
|
||||
namespace Microsoft.DotNet.Cli.MSBuild.Tests
|
||||
{
|
||||
public class GivenDotnetBuildInvocation
|
||||
{
|
||||
[Fact]
|
||||
public void WhenNoArgsArePassedThenMsbuildInvocationIsCorrect()
|
||||
{
|
||||
var msbuildPath = Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.dll");
|
||||
BuildCommand.FromArgs()
|
||||
.GetProcessStartInfo().Arguments.Should().Be($@"exec {msbuildPath} /m /v:m /t:Build /clp:Summary");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue