preview of single unit test for dotnet build

This commit is contained in:
Krzysztof Wicher 2017-02-14 10:41:58 -08:00
parent dfde101b7c
commit 9c00966956
5 changed files with 120 additions and 24 deletions

View 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");
}
}
}