From 18c8a4eedb907b56abdd92963fffde9f59e9dae2 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Mon, 14 Feb 2022 13:52:59 -0800 Subject: Remove use of InternalsVisibleTo Ensure the tests validate the correct error code is sent, not that the correct internal variable was used return the error code. --- src/wix/WixToolset.Core/WixToolset.Core.csproj | 12 ------------ src/wix/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | 8 ++++---- .../test/WixToolsetTest.CoreIntegration/PayloadFixture.cs | 2 +- 3 files changed, 5 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/wix/WixToolset.Core/WixToolset.Core.csproj b/src/wix/WixToolset.Core/WixToolset.Core.csproj index 71742b66..c2551b21 100644 --- a/src/wix/WixToolset.Core/WixToolset.Core.csproj +++ b/src/wix/WixToolset.Core/WixToolset.Core.csproj @@ -14,18 +14,6 @@ true - - - <_Parameter1>WixToolset.Core.TestPackage, PublicKey=0024000004800000940000000602000000240000525341310004000001000100a9967ec28982f42ee51a47dd5204315975a6ed69294b982146a99a70130a2fa13e226aaddde14c17d1bf3af69e8956d69a86585e74d208efcc5ac98a0686055327b2e87960d3c39bf3a6bc1e572863327d19dbf4fd2616dda124dbea260755a2d1d39d3cf1049ea526493eb2bf996b8ad985e3012308529e5b9b0f5cd5fa04bd - - - <_Parameter1>WixToolsetTest.Core.Burn, PublicKey=0024000004800000940000000602000000240000525341310004000001000100a9967ec28982f42ee51a47dd5204315975a6ed69294b982146a99a70130a2fa13e226aaddde14c17d1bf3af69e8956d69a86585e74d208efcc5ac98a0686055327b2e87960d3c39bf3a6bc1e572863327d19dbf4fd2616dda124dbea260755a2d1d39d3cf1049ea526493eb2bf996b8ad985e3012308529e5b9b0f5cd5fa04bd - - - <_Parameter1>WixToolsetTest.CoreIntegration, PublicKey=0024000004800000940000000602000000240000525341310004000001000100a9967ec28982f42ee51a47dd5204315975a6ed69294b982146a99a70130a2fa13e226aaddde14c17d1bf3af69e8956d69a86585e74d208efcc5ac98a0686055327b2e87960d3c39bf3a6bc1e572863327d19dbf4fd2616dda124dbea260755a2d1d39d3cf1049ea526493eb2bf996b8ad985e3012308529e5b9b0f5cd5fa04bd - - - diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/BundleFixture.cs b/src/wix/test/WixToolsetTest.CoreIntegration/BundleFixture.cs index 601503ab..711b2fda 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/BundleFixture.cs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/BundleFixture.cs @@ -441,7 +441,7 @@ namespace WixToolsetTest.CoreIntegration "-o", exePath, }); - Assert.Equal((int)LinkerErrors.Ids.OrphanedPayload, result.ExitCode); + Assert.Equal(7000, result.ExitCode); } } @@ -468,7 +468,7 @@ namespace WixToolsetTest.CoreIntegration "-o", exePath, }); - Assert.Equal((int)LinkerErrors.Ids.PackageInMultipleContainers, result.ExitCode); + Assert.Equal(7001, result.ExitCode); } } @@ -494,7 +494,7 @@ namespace WixToolsetTest.CoreIntegration "-o", exePath, }); - Assert.Equal((int)LinkerErrors.Ids.UnscheduledChainPackage, result.ExitCode); + Assert.Equal(7003, result.ExitCode); } } @@ -520,7 +520,7 @@ namespace WixToolsetTest.CoreIntegration "-o", exePath, }); - Assert.Equal((int)LinkerErrors.Ids.UnscheduledRollbackBoundary, result.ExitCode); + Assert.Equal(7004, result.ExitCode); } } } diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs b/src/wix/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs index cb35976a..bda642cb 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs @@ -140,7 +140,7 @@ namespace WixToolsetTest.CoreIntegration "-o", bundlePath, }); - Assert.Equal((int)LinkerErrors.Ids.PayloadSharedWithBA, result.ExitCode); + Assert.Equal(7002, result.ExitCode); } } -- cgit v1.2.3-55-g6feb