diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-12-31 18:20:50 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-01-01 10:24:08 -0600 |
| commit | 95b1be66d4c16b1b05b761c1771df229ac0e539c (patch) | |
| tree | 7ea6a46cd25ea83c41d0a7ba66df177925d95f44 /src/api | |
| parent | 5be795c6bcbc03bc37f7cf7c758298ccfaa884ca (diff) | |
| download | wix-95b1be66d4c16b1b05b761c1771df229ac0e539c.tar.gz wix-95b1be66d4c16b1b05b761c1771df229ac0e539c.tar.bz2 wix-95b1be66d4c16b1b05b761c1771df229ac0e539c.zip | |
Try to get more helpful test failure messages.
Diffstat (limited to 'src/api')
4 files changed, 14 insertions, 2 deletions
diff --git a/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs b/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs index 8705ed13..39a92024 100644 --- a/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs +++ b/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs | |||
| @@ -5,6 +5,7 @@ namespace WixToolsetTest.Mba.Core | |||
| 5 | using System; | 5 | using System; |
| 6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
| 7 | using System.Runtime.InteropServices; | 7 | using System.Runtime.InteropServices; |
| 8 | using WixBuildTools.TestSupport; | ||
| 8 | using WixToolset.Mba.Core; | 9 | using WixToolset.Mba.Core; |
| 9 | using Xunit; | 10 | using Xunit; |
| 10 | 11 | ||
| @@ -45,7 +46,7 @@ namespace WixToolsetTest.Mba.Core | |||
| 45 | Assert.Equal(baFactory.BA.Command.Display, command.display); | 46 | Assert.Equal(baFactory.BA.Command.Display, command.display); |
| 46 | 47 | ||
| 47 | var mbaCommand = baFactory.BA.Command.ParseCommandLine(); | 48 | var mbaCommand = baFactory.BA.Command.ParseCommandLine(); |
| 48 | Assert.Equal(mbaCommand.UnknownCommandLineArgs, new string[] { "this", "is a", "test" }); | 49 | WixAssert.CompareLineByLine(mbaCommand.UnknownCommandLineArgs, new string[] { "this", "is a", "test" }); |
| 49 | Assert.Equal(mbaCommand.Variables, new KeyValuePair<string, string>[] | 50 | Assert.Equal(mbaCommand.Variables, new KeyValuePair<string, string>[] |
| 50 | { | 51 | { |
| 51 | new KeyValuePair<string, string>("VariableA", "AVariable"), | 52 | new KeyValuePair<string, string>("VariableA", "AVariable"), |
diff --git a/src/api/burn/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj b/src/api/burn/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj index af3a09b0..39d4def3 100644 --- a/src/api/burn/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj +++ b/src/api/burn/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj | |||
| @@ -15,6 +15,11 @@ | |||
| 15 | </ItemGroup> | 15 | </ItemGroup> |
| 16 | 16 | ||
| 17 | <ItemGroup> | 17 | <ItemGroup> |
| 18 | <!-- <PackageReference Include="WixBuildTools.TestSupport" /> --> | ||
| 19 | <ProjectReference Include="..\..\..\..\internal\WixBuildTools.TestSupport\WixBuildTools.TestSupport.csproj" /> | ||
| 20 | </ItemGroup> | ||
| 21 | |||
| 22 | <ItemGroup> | ||
| 18 | <PackageReference Include="Microsoft.NET.Test.Sdk" /> | 23 | <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
| 19 | <PackageReference Include="xunit" /> | 24 | <PackageReference Include="xunit" /> |
| 20 | <PackageReference Include="xunit.runner.visualstudio" PrivateAssets="All" /> | 25 | <PackageReference Include="xunit.runner.visualstudio" PrivateAssets="All" /> |
diff --git a/src/api/wix/test/WixToolsetTest.Data/SerializeFixture.cs b/src/api/wix/test/WixToolsetTest.Data/SerializeFixture.cs index 8a65c2d4..cd485fd2 100644 --- a/src/api/wix/test/WixToolsetTest.Data/SerializeFixture.cs +++ b/src/api/wix/test/WixToolsetTest.Data/SerializeFixture.cs | |||
| @@ -5,6 +5,7 @@ namespace WixToolsetTest.Data | |||
| 5 | using System; | 5 | using System; |
| 6 | using System.IO; | 6 | using System.IO; |
| 7 | using System.Linq; | 7 | using System.Linq; |
| 8 | using WixBuildTools.TestSupport; | ||
| 8 | using WixToolset.Data; | 9 | using WixToolset.Data; |
| 9 | using WixToolset.Data.Bind; | 10 | using WixToolset.Data.Bind; |
| 10 | using WixToolset.Data.Symbols; | 11 | using WixToolset.Data.Symbols; |
| @@ -375,7 +376,7 @@ namespace WixToolsetTest.Data | |||
| 375 | var loc = loaded.Localizations.Single(); | 376 | var loc = loaded.Localizations.Single(); |
| 376 | Assert.Equal(65001, loc.Codepage); | 377 | Assert.Equal(65001, loc.Codepage); |
| 377 | Assert.Empty(loc.Culture); | 378 | Assert.Empty(loc.Culture); |
| 378 | Assert.Equal(new[] | 379 | WixAssert.CompareLineByLine(new[] |
| 379 | { | 380 | { |
| 380 | "TestVar1/TestValue1/False", | 381 | "TestVar1/TestValue1/False", |
| 381 | "TestVar2/TestValue2/True", | 382 | "TestVar2/TestValue2/True", |
diff --git a/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj b/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj index f6e10488..36220fb7 100644 --- a/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj +++ b/src/api/wix/test/WixToolsetTest.Data/WixToolsetTest.Data.csproj | |||
| @@ -13,6 +13,11 @@ | |||
| 13 | </ItemGroup> | 13 | </ItemGroup> |
| 14 | 14 | ||
| 15 | <ItemGroup> | 15 | <ItemGroup> |
| 16 | <!-- <PackageReference Include="WixBuildTools.TestSupport" /> --> | ||
| 17 | <ProjectReference Include="..\..\..\..\internal\WixBuildTools.TestSupport\WixBuildTools.TestSupport.csproj" /> | ||
| 18 | </ItemGroup> | ||
| 19 | |||
| 20 | <ItemGroup> | ||
| 16 | <PackageReference Include="Microsoft.NET.Test.Sdk" /> | 21 | <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
| 17 | <PackageReference Include="xunit" /> | 22 | <PackageReference Include="xunit" /> |
| 18 | <PackageReference Include="xunit.runner.visualstudio" PrivateAssets="All" /> | 23 | <PackageReference Include="xunit.runner.visualstudio" PrivateAssets="All" /> |
