blob: 1b35e4916012ad9d33604ced227a249d558b25cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// 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 WixToolsetTest.WixCop
{
using System;
using System.Linq;
using WixToolset.Data;
using Xunit;
public class WixCopRunnerResult
{
public int ExitCode { get; set; }
public Message[] Messages { get; set; }
public WixCopRunnerResult AssertSuccess()
{
Assert.True(0 == this.ExitCode, $"WixCop failed unexpectedly. Output:\r\n{String.Join("\r\n", this.Messages.Select(m => m.ToString()).ToArray())}");
return this;
}
}
}
|