blob: 02e25ebb6926168c61506471d2933afdc69fa0ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
namespace WixInternal.MSTestSupport
{
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
public class MsbuildRunnerResult
{
public int ExitCode { get; set; }
public string[] Output { get; set; }
public void AssertSuccess()
{
Assert.IsTrue(0 == this.ExitCode, $"MSBuild failed unexpectedly. Output:{Environment.NewLine}{String.Join(Environment.NewLine, this.Output)}");
}
}
}
|