blob: 4dda6b23bccee28dd846505a65e030aa80bd0d13 (
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.AreEqual(0, this.ExitCode, $"MSBuild failed unexpectedly. Output:{Environment.NewLine}{String.Join(Environment.NewLine, this.Output)}");
}
}
}
|