diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-22 17:19:56 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-04-29 19:53:52 -0700 |
| commit | 8cf0427984a88b0b3ddfb2061e5be721afffe82e (patch) | |
| tree | 22e2aaf7665d5ab6d3dc2a8ce8f05d73080d1f20 /src/test/WixToolsetTest.CoreIntegration/ComponentFixture.cs | |
| parent | 8426095723fb8530a321260473ab543151bf8c98 (diff) | |
| download | wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.gz wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.bz2 wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.zip | |
Move Core into wix
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/ComponentFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/ComponentFixture.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/ComponentFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ComponentFixture.cs deleted file mode 100644 index d24ba08c..00000000 --- a/src/test/WixToolsetTest.CoreIntegration/ComponentFixture.cs +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 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.CoreIntegration | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.IO; | ||
| 7 | using System.Linq; | ||
| 8 | using WixBuildTools.TestSupport; | ||
| 9 | using WixToolset.Core.TestPackage; | ||
| 10 | using WixToolset.Data; | ||
| 11 | using Xunit; | ||
| 12 | |||
| 13 | public class ComponentFixture | ||
| 14 | { | ||
| 15 | [Fact] | ||
| 16 | public void CanDetectDuplicateComponentGuids() | ||
| 17 | { | ||
| 18 | var folder = TestData.Get(@"TestData"); | ||
| 19 | |||
| 20 | using (var fs = new DisposableFileSystem()) | ||
| 21 | { | ||
| 22 | var baseFolder = fs.GetFolder(); | ||
| 23 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 24 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 25 | |||
| 26 | var result = WixRunner.Execute(new[] | ||
| 27 | { | ||
| 28 | "build", | ||
| 29 | Path.Combine(folder, "Component", "GuidCollision.wxs"), | ||
| 30 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 31 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 32 | "-intermediateFolder", intermediateFolder, | ||
| 33 | "-o", msiPath | ||
| 34 | }); | ||
| 35 | |||
| 36 | var errors = result.Messages.Where(m => m.Level == MessageLevel.Error); | ||
| 37 | Array.Equals(new[] | ||
| 38 | { | ||
| 39 | 369, | ||
| 40 | 369 | ||
| 41 | }, errors.Select(e => e.Id).ToArray()); | ||
| 42 | } | ||
| 43 | } | ||
| 44 | } | ||
| 45 | } | ||
