blob: 74cf9769763cc99e2f8a841e32ec595bd178a905 (
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
33
|
// 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.Util
{
using System.Linq;
using WixBuildTools.TestSupport;
using WixToolset.Core.TestPackage;
using WixToolset.Util;
using Xunit;
public class UtilExtensionFixture
{
[Fact]
public void CanBuildUsingFileShare()
{
var folder = TestData.Get(@"TestData\UsingFileShare");
var build = new Builder(folder, typeof(UtilExtensionFactory), new[] { folder });
var results = build.BuildAndQuery(Build, "FileShare", "FileSharePermissions");
Assert.Equal(new[]
{
"FileShare:ExampleFileShare\texample\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo\tAn example file share\tINSTALLFOLDER\t\t",
"FileSharePermissions:ExampleFileShare\tEveryone\t1",
}, results.OrderBy(s => s).ToArray());
}
private static void Build(string[] args)
{
var result = WixRunner.Execute(args)
.AssertSuccess();
}
}
}
|