aboutsummaryrefslogtreecommitdiff
path: root/src/internal/WixBuildTools.TestSupport/MsbuildRunnerResult.cs
blob: 5610987e856fb201eb406cefe5e5ea63df144094 (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 WixBuildTools.TestSupport
{
    using System;
    using Xunit;

    public class MsbuildRunnerResult
    {
        public int ExitCode { get; set; }

        public string[] Output { get; set; }

        public void AssertSuccess()
        {
            Assert.True(0 == this.ExitCode, $"MSBuild failed unexpectedly. Output:\r\n{String.Join("\r\n", this.Output)}");
        }
    }
}