diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-23 16:29:55 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-23 16:34:09 -0700 |
| commit | 36cfc9509cb6a364f58531ff41eae16243091a3c (patch) | |
| tree | 7e88ad0e1bea778a35dc393d0d62b889e15eea8d /src/test | |
| parent | 26b1860dcd8a84b410ab5cd3df7e37104e6ee1b1 (diff) | |
| download | wix-36cfc9509cb6a364f58531ff41eae16243091a3c.tar.gz wix-36cfc9509cb6a364f58531ff41eae16243091a3c.tar.bz2 wix-36cfc9509cb6a364f58531ff41eae16243091a3c.zip | |
User shared data types from WixToolset.Data
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/WixToolsetTest.Core.Native/CabinetFixture.cs | 6 | ||||
| -rw-r--r-- | src/test/WixToolsetTest.Core.Native/WixToolsetTest.Core.Native.csproj | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/test/WixToolsetTest.Core.Native/CabinetFixture.cs b/src/test/WixToolsetTest.Core.Native/CabinetFixture.cs index bc8f0ff8..fba0d5c9 100644 --- a/src/test/WixToolsetTest.Core.Native/CabinetFixture.cs +++ b/src/test/WixToolsetTest.Core.Native/CabinetFixture.cs | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolsetTest.CoreNative | 3 | namespace WixToolsetTest.CoreNative |
| 4 | { | 4 | { |
| 5 | using System; | ||
| 6 | using System.IO; | 5 | using System.IO; |
| 7 | using System.Linq; | 6 | using System.Linq; |
| 8 | using WixToolset.Core.Native; | 7 | using WixToolset.Core.Native; |
| 9 | using WixToolsetTest.CoreNative.Utility; | 8 | using WixToolsetTest.CoreNative.Utility; |
| 9 | using WixToolset.Data; | ||
| 10 | using Xunit; | 10 | using Xunit; |
| 11 | 11 | ||
| 12 | public class CabinetFixture | 12 | public class CabinetFixture |
| @@ -22,7 +22,7 @@ namespace WixToolsetTest.CoreNative | |||
| 22 | var files = new[] { new CabinetCompressFile(TestData.Get(@"TestData\test.txt"), "test.txt") }; | 22 | var files = new[] { new CabinetCompressFile(TestData.Get(@"TestData\test.txt"), "test.txt") }; |
| 23 | 23 | ||
| 24 | var cabinet = new Cabinet(cabPath); | 24 | var cabinet = new Cabinet(cabPath); |
| 25 | cabinet.Compress(files, CabinetCompressionLevel.Low); | 25 | cabinet.Compress(files, CompressionLevel.Low); |
| 26 | 26 | ||
| 27 | Assert.True(File.Exists(cabPath)); | 27 | Assert.True(File.Exists(cabPath)); |
| 28 | } | 28 | } |
| @@ -84,7 +84,7 @@ namespace WixToolsetTest.CoreNative | |||
| 84 | var files = new[] { new CabinetCompressFile(TestData.Get(@"TestData\test.txt"), "test.txt") }; | 84 | var files = new[] { new CabinetCompressFile(TestData.Get(@"TestData\test.txt"), "test.txt") }; |
| 85 | 85 | ||
| 86 | var cabinet = new Cabinet(cabinetPath); | 86 | var cabinet = new Cabinet(cabinetPath); |
| 87 | cabinet.Compress(files, CabinetCompressionLevel.Low); | 87 | cabinet.Compress(files, CompressionLevel.Low); |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | // Extract. | 90 | // Extract. |
diff --git a/src/test/WixToolsetTest.Core.Native/WixToolsetTest.Core.Native.csproj b/src/test/WixToolsetTest.Core.Native/WixToolsetTest.Core.Native.csproj index 47396ead..263712bb 100644 --- a/src/test/WixToolsetTest.Core.Native/WixToolsetTest.Core.Native.csproj +++ b/src/test/WixToolsetTest.Core.Native/WixToolsetTest.Core.Native.csproj | |||
| @@ -17,6 +17,10 @@ | |||
| 17 | </ItemGroup> | 17 | </ItemGroup> |
| 18 | 18 | ||
| 19 | <ItemGroup> | 19 | <ItemGroup> |
| 20 | <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="All" /> | ||
| 21 | </ItemGroup> | ||
| 22 | |||
| 23 | <ItemGroup> | ||
| 20 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" /> | 24 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" /> |
| 21 | <PackageReference Include="xunit" Version="2.4.1" /> | 25 | <PackageReference Include="xunit" Version="2.4.1" /> |
| 22 | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" PrivateAssets="All" /> | 26 | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" PrivateAssets="All" /> |
