blob: 5aa3f866f13616fdd8ee5928bede88abdcefa48e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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.Iis
{
using System.Linq;
using WixBuildTools.TestSupport;
using WixToolset.Core.TestPackage;
using WixToolset.Iis;
using Xunit;
public class IisExtensionFixture
{
[Fact]
public void CanBuildUsingIIsWebAddress()
{
var folder = TestData.Get(@"TestData\UsingIis");
var build = new Builder(folder, typeof(IisExtensionFactory), new[] { folder });
var results = build.BuildAndQuery(Build, "IIsWebAddress");
Assert.Equal(new[]
{
"IIsWebAddress:TestAddress\tTest\t\t[PORT]\t\t0",
}, results.OrderBy(s => s).ToArray());
}
private static void Build(string[] args)
{
var result = WixRunner.Execute(args)
.AssertSuccess();
}
}
}
|