diff options
Diffstat (limited to 'src/test/WixToolsetTest.Http/HttpExtensionFixture.cs')
-rw-r--r-- | src/test/WixToolsetTest.Http/HttpExtensionFixture.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.Http/HttpExtensionFixture.cs b/src/test/WixToolsetTest.Http/HttpExtensionFixture.cs new file mode 100644 index 00000000..5658b657 --- /dev/null +++ b/src/test/WixToolsetTest.Http/HttpExtensionFixture.cs | |||
@@ -0,0 +1,33 @@ | |||
1 | // 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. | ||
2 | |||
3 | namespace WixToolsetTest.Http | ||
4 | { | ||
5 | using System.Linq; | ||
6 | using WixBuildTools.TestSupport; | ||
7 | using WixToolset.Core.TestPackage; | ||
8 | using WixToolset.Http; | ||
9 | using Xunit; | ||
10 | |||
11 | public class HttpExtensionFixture | ||
12 | { | ||
13 | [Fact] | ||
14 | public void CanBuildUsingMessageQueue() | ||
15 | { | ||
16 | var folder = TestData.Get(@"TestData\UsingUrlReservation"); | ||
17 | var build = new Builder(folder, typeof(HttpExtensionFactory), new[] { folder }); | ||
18 | |||
19 | var results = build.BuildAndQuery(Build, "WixHttpUrlAce", "WixHttpUrlReservation"); | ||
20 | Assert.Equal(new[] | ||
21 | { | ||
22 | "WixHttpUrlAce:ace3u9zYtPm8dLIoYgB0bARb0dbB9w\turlt8sDcF469vDrZNldk0moxI25IGM\tNT SERVICE\\TestService\t268435456", | ||
23 | "WixHttpUrlReservation:urlt8sDcF469vDrZNldk0moxI25IGM\t0\t\thttp://+:80/vroot/\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo", | ||
24 | }, results.OrderBy(s => s).ToArray()); | ||
25 | } | ||
26 | |||
27 | private static void Build(string[] args) | ||
28 | { | ||
29 | var result = WixRunner.Execute(args) | ||
30 | .AssertSuccess(); | ||
31 | } | ||
32 | } | ||
33 | } | ||