diff --git a/src/ext/Iis/test/WixToolsetTest.Iis/IisExtensionFixture.cs b/src/ext/Iis/test/WixToolsetTest.Iis/IisExtensionFixture.cs index 28334bfa8..ab3f35d94 100644 --- a/src/ext/Iis/test/WixToolsetTest.Iis/IisExtensionFixture.cs +++ b/src/ext/Iis/test/WixToolsetTest.Iis/IisExtensionFixture.cs @@ -11,14 +11,15 @@ namespace WixToolsetTest.Iis public class IisExtensionFixture { [Fact] - public void CanBuildUsingIIsWebAddress() + public void CanBuildUsingIIs() { var folder = TestData.Get(@"TestData\UsingIis"); var build = new Builder(folder, typeof(IisExtensionFactory), new[] { folder }); - var results = build.BuildAndQuery(Build, validate: true, "Wix4IIsWebSite", "Wix4IIsWebAddress"); + var results = build.BuildAndQuery(Build, validate: true, "Wix4Certificate", "Wix4CertificateHash", "Wix4IIsWebSite", "Wix4IIsWebAddress"); WixAssert.CompareLineByLine(new[] { + "Wix4Certificate:Certificate.MyCert\tMyCert\tMyCert certificate\t2\tTrustedPublisher\t14\tMyCertBits\t\t", "Wix4IIsWebAddress:TestAddress\tTest\t\t[PORT]\t\t0", "Wix4IIsWebSite:Test\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo\tTest web server\t\tTestWebSiteProductDirectory\t2\t2\tTestAddress\tReadAndExecute\t\t\t\t", }, results); @@ -26,7 +27,14 @@ public void CanBuildUsingIIsWebAddress() private static void Build(string[] args) { - WixRunner.Execute(args).AssertSuccess(); + var newArgs = args.ToList(); + + if (args.First() == "build") + { + newArgs.AddRange(new[] { "-arch", "x64" }); + } + + WixRunner.Execute(newArgs.ToArray()).AssertSuccess(); } } } diff --git a/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/Package.wxs b/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/Package.wxs index f36aafefc..affcff262 100644 --- a/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/Package.wxs +++ b/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/Package.wxs @@ -1,4 +1,4 @@ - + @@ -8,7 +8,7 @@ - + diff --git a/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/PackageComponents.wxs b/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/PackageComponents.wxs index 03203b50f..128f7d0dc 100644 --- a/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/PackageComponents.wxs +++ b/src/ext/Iis/test/WixToolsetTest.Iis/TestData/UsingIis/PackageComponents.wxs @@ -1,16 +1,32 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +