diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-30 01:56:55 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-30 01:56:55 -0800 |
| commit | c8f39be3f8b70b36a8b89b6ccdd4ebb94290b6b3 (patch) | |
| tree | e5936f50d2075a136ed0fc3a9c94aa5b5d2bb886 /src/test/WixToolsetTest.Util/UtilExtensionFixture.cs | |
| parent | 3540e7467e1d5376660b13139a4a168e700b3dbf (diff) | |
| download | wix-c8f39be3f8b70b36a8b89b6ccdd4ebb94290b6b3.tar.gz wix-c8f39be3f8b70b36a8b89b6ccdd4ebb94290b6b3.tar.bz2 wix-c8f39be3f8b70b36a8b89b6ccdd4ebb94290b6b3.zip | |
Initial code commit
Diffstat (limited to 'src/test/WixToolsetTest.Util/UtilExtensionFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.Util/UtilExtensionFixture.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.Util/UtilExtensionFixture.cs b/src/test/WixToolsetTest.Util/UtilExtensionFixture.cs new file mode 100644 index 00000000..5ce9f5ea --- /dev/null +++ b/src/test/WixToolsetTest.Util/UtilExtensionFixture.cs | |||
| @@ -0,0 +1,34 @@ | |||
| 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.VisualStudio | ||
| 4 | { | ||
| 5 | using System.Linq; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using WixToolset.Util; | ||
| 9 | using Xunit; | ||
| 10 | |||
| 11 | public class VisualStudioExtensionFixture | ||
| 12 | { | ||
| 13 | [Fact] | ||
| 14 | public void CanBuildUsingFileShare() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\UsingFileShare"); | ||
| 17 | var build = new Builder(folder, typeof(UtilExtensionFactory), new[] { folder }); | ||
| 18 | |||
| 19 | var results = build.BuildAndQuery(Build, "FileShare", "FileSharePermissions"); | ||
| 20 | Assert.Equal(new[] | ||
| 21 | { | ||
| 22 | "FileShare:SetVS2010Vsix\t51\tVS_VSIX_INSTALLER_PATH\t[VS2010_VSIX_INSTALLER_PATH]\t0", | ||
| 23 | "FileSharePermissions:SetVS2012Vsix\t51\tVS_VSIX_INSTALLER_PATH\t[VS2012_VSIX_INSTALLER_PATH]\t0", | ||
| 24 | }, results.OrderBy(s => s).ToArray()); | ||
| 25 | } | ||
| 26 | |||
| 27 | private static void Build(string[] args) | ||
| 28 | { | ||
| 29 | var result = WixRunner.Execute(args, out var messages); | ||
| 30 | Assert.Equal(0, result); | ||
| 31 | Assert.Empty(messages); | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } | ||
