diff options
| author | Bob Arnson <bob@firegiant.com> | 2020-07-26 23:06:40 -0400 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2020-07-26 23:13:18 -0400 |
| commit | 581897da13bd8a20eea0c2079262caaa06cde676 (patch) | |
| tree | 7af47231adcb2eef5458db3d965b3abadbb6ab04 /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |
| parent | b62a7a0beb7ceb7987de28ec768c7814cadb83b9 (diff) | |
| download | wix-581897da13bd8a20eea0c2079262caaa06cde676.tar.gz wix-581897da13bd8a20eea0c2079262caaa06cde676.tar.bz2 wix-581897da13bd8a20eea0c2079262caaa06cde676.zip | |
Fix Control symbol dehydration to MSI output.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 69 |
1 files changed, 36 insertions, 33 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 4ff7f5f6..158687cf 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -41,7 +41,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 41 | 41 | ||
| 42 | Assert.True(File.Exists(msiPath)); | 42 | Assert.True(File.Exists(msiPath)); |
| 43 | var results = Query.QueryDatabase(msiPath, new[] { "AppId" }); | 43 | var results = Query.QueryDatabase(msiPath, new[] { "AppId" }); |
| 44 | Assert.Equal(new[] | 44 | WixAssert.CompareLineByLine(new[] |
| 45 | { | 45 | { |
| 46 | "AppId:{D6040299-B15C-4C94-AE26-0C9B60D14C35}\t\t\t\t\t\t", | 46 | "AppId:{D6040299-B15C-4C94-AE26-0C9B60D14C35}\t\t\t\t\t\t", |
| 47 | }, results); | 47 | }, results); |
| @@ -74,7 +74,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 74 | 74 | ||
| 75 | Assert.True(File.Exists(msiPath)); | 75 | Assert.True(File.Exists(msiPath)); |
| 76 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "CompLocator" }); | 76 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "CompLocator" }); |
| 77 | Assert.Equal(new[] | 77 | WixAssert.CompareLineByLine(new[] |
| 78 | { | 78 | { |
| 79 | "AppSearch:SAMPLECOMPFOUND\tSampleCompSearch", | 79 | "AppSearch:SAMPLECOMPFOUND\tSampleCompSearch", |
| 80 | "CompLocator:SampleCompSearch\t{4D9A0D20-D0CC-40DE-B580-EAD38B985217}\t1", | 80 | "CompLocator:SampleCompSearch\t{4D9A0D20-D0CC-40DE-B580-EAD38B985217}\t1", |
| @@ -108,7 +108,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 108 | 108 | ||
| 109 | Assert.True(File.Exists(msiPath)); | 109 | Assert.True(File.Exists(msiPath)); |
| 110 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "DrLocator" }); | 110 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "DrLocator" }); |
| 111 | Assert.Equal(new[] | 111 | WixAssert.CompareLineByLine(new[] |
| 112 | { | 112 | { |
| 113 | "AppSearch:SAMPLEDIRFOUND\tSampleDirSearch", | 113 | "AppSearch:SAMPLEDIRFOUND\tSampleDirSearch", |
| 114 | "DrLocator:SampleDirSearch\t\tC:\\SampleDir\t", | 114 | "DrLocator:SampleDirSearch\t\tC:\\SampleDir\t", |
| @@ -142,7 +142,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 142 | 142 | ||
| 143 | Assert.True(File.Exists(msiPath)); | 143 | Assert.True(File.Exists(msiPath)); |
| 144 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "DrLocator", "IniLocator" }); | 144 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "DrLocator", "IniLocator" }); |
| 145 | Assert.Equal(new[] | 145 | WixAssert.CompareLineByLine(new[] |
| 146 | { | 146 | { |
| 147 | "AppSearch:SAMPLEFILEFOUND\tSampleFileSearch", | 147 | "AppSearch:SAMPLEFILEFOUND\tSampleFileSearch", |
| 148 | "DrLocator:SampleFileSearch\tSampleIniFileSearch\t\t", | 148 | "DrLocator:SampleFileSearch\tSampleIniFileSearch\t\t", |
| @@ -177,7 +177,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 177 | 177 | ||
| 178 | Assert.True(File.Exists(msiPath)); | 178 | Assert.True(File.Exists(msiPath)); |
| 179 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "RegLocator" }); | 179 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "RegLocator" }); |
| 180 | Assert.Equal(new[] | 180 | WixAssert.CompareLineByLine(new[] |
| 181 | { | 181 | { |
| 182 | "AppSearch:SAMPLEREGFOUND\tSampleRegSearch", | 182 | "AppSearch:SAMPLEREGFOUND\tSampleRegSearch", |
| 183 | "RegLocator:SampleRegSearch\t2\tSampleReg\t\t2", | 183 | "RegLocator:SampleRegSearch\t2\tSampleReg\t\t2", |
| @@ -213,7 +213,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 213 | 213 | ||
| 214 | Assert.True(File.Exists(msiPath)); | 214 | Assert.True(File.Exists(msiPath)); |
| 215 | var results = Query.QueryDatabase(msiPath, new[] { "Class" }); | 215 | var results = Query.QueryDatabase(msiPath, new[] { "Class" }); |
| 216 | Assert.Equal(new[] | 216 | WixAssert.CompareLineByLine(new[] |
| 217 | { | 217 | { |
| 218 | "Class:{3FAED4CC-C473-4B8A-BE8B-303871377A4A}\tLocalServer32\tClassComp\t\tFakeClass3FAE\t\t\tSampleIcon\t0\t\t\tProductFeature\t", | 218 | "Class:{3FAED4CC-C473-4B8A-BE8B-303871377A4A}\tLocalServer32\tClassComp\t\tFakeClass3FAE\t\t\tSampleIcon\t0\t\t\tProductFeature\t", |
| 219 | }, results); | 219 | }, results); |
| @@ -246,7 +246,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 246 | 246 | ||
| 247 | Assert.True(File.Exists(msiPath)); | 247 | Assert.True(File.Exists(msiPath)); |
| 248 | var results = Query.QueryDatabase(msiPath, new[] { "Class", "ProgId", "Registry" }); | 248 | var results = Query.QueryDatabase(msiPath, new[] { "Class", "ProgId", "Registry" }); |
| 249 | Assert.Equal(new[] | 249 | WixAssert.CompareLineByLine(new[] |
| 250 | { | 250 | { |
| 251 | "Class:{F12A6F69-117F-471F-AE73-F8E74218F498}\tLocalServer32\tProgIdComp\t73E7DF7E-EFAC-4E11-90E2-6EBAEB8DE58D\tFakeClassF12A\t\t\t\t\t\t\tProductFeature\t", | 251 | "Class:{F12A6F69-117F-471F-AE73-F8E74218F498}\tLocalServer32\tProgIdComp\t73E7DF7E-EFAC-4E11-90E2-6EBAEB8DE58D\tFakeClassF12A\t\t\t\t\t\t\tProductFeature\t", |
| 252 | "ProgId:73E7DF7E-EFAC-4E11-90E2-6EBAEB8DE58D\t\t{F12A6F69-117F-471F-AE73-F8E74218F498}\tFakeClassF12A\t\t", | 252 | "ProgId:73E7DF7E-EFAC-4E11-90E2-6EBAEB8DE58D\t\t{F12A6F69-117F-471F-AE73-F8E74218F498}\tFakeClassF12A\t\t", |
| @@ -283,14 +283,17 @@ namespace WixToolsetTest.CoreIntegration | |||
| 283 | 283 | ||
| 284 | Assert.True(File.Exists(msiPath)); | 284 | Assert.True(File.Exists(msiPath)); |
| 285 | 285 | ||
| 286 | var results = Query.QueryDatabase(msiPath, new[] { "CheckBox", "Control", "InstallUISequence" }); | 286 | var results = Query.QueryDatabase(msiPath, new[] { "CheckBox", "Control", "ControlCondition", "InstallUISequence" }); |
| 287 | Assert.Equal(new[] | 287 | WixAssert.CompareLineByLine(new[] |
| 288 | { | 288 | { |
| 289 | "CheckBox:WIXUI_EXITDIALOGOPTIONALCHECKBOX\t1", | 289 | "CheckBox:WIXUI_EXITDIALOGOPTIONALCHECKBOX\t1", |
| 290 | "Control:FirstDialog\tHeader\tText\t0\t13\t90\t13\t3\tFirstDialogHeader\tTitle\t\t", | 290 | "Control:FirstDialog\tHeader\tText\t0\t13\t90\t13\t3\t\tFirstDialogHeader\tTitle\t", |
| 291 | "Control:FirstDialog\tTitle\tText\t0\t0\t90\t13\t3\tFirstDialogTitle\tHeader\t\t", | 291 | "Control:FirstDialog\tTitle\tText\t0\t0\t90\t13\t3\t\tFirstDialogTitle\tHeader\t", |
| 292 | "Control:SecondDialog\tOptionalCheckBox\tCheckBox\t0\t13\t100\t40\t2\t[WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT]\tTitle\t\t", | 292 | "Control:SecondDialog\tOptionalCheckBox\tCheckBox\t0\t13\t100\t40\t2\tWIXUI_EXITDIALOGOPTIONALCHECKBOX\t[WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT]\tTitle\tOptional checkbox|Check this box for fun", |
| 293 | "Control:SecondDialog\tTitle\tText\t0\t0\t90\t13\t3\tSecondDialogTitle\tOptionalCheckBox\t\t", | 293 | "Control:SecondDialog\tTitle\tText\t0\t0\t90\t13\t3\t\tSecondDialogTitle\tOptionalCheckBox\t", |
| 294 | "ControlCondition:FirstDialog\tHeader\tDisable\tInstalled", | ||
| 295 | "ControlCondition:FirstDialog\tHeader\tHide\tInstalled", | ||
| 296 | "ControlCondition:SecondDialog\tOptionalCheckBox\tShow\tWIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT AND NOT Installed", | ||
| 294 | "InstallUISequence:CostFinalize\t\t1000", | 297 | "InstallUISequence:CostFinalize\t\t1000", |
| 295 | "InstallUISequence:CostInitialize\t\t800", | 298 | "InstallUISequence:CostInitialize\t\t800", |
| 296 | "InstallUISequence:ExecuteAction\t\t1300", | 299 | "InstallUISequence:ExecuteAction\t\t1300", |
| @@ -331,7 +334,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 331 | 334 | ||
| 332 | Assert.True(File.Exists(msiPath)); | 335 | Assert.True(File.Exists(msiPath)); |
| 333 | var results = Query.QueryDatabase(msiPath, new[] { "CreateFolder" }); | 336 | var results = Query.QueryDatabase(msiPath, new[] { "CreateFolder" }); |
| 334 | Assert.Equal(new[] | 337 | WixAssert.CompareLineByLine(new[] |
| 335 | { | 338 | { |
| 336 | "CreateFolder:INSTALLFOLDER\tNullKeypathComponent", | 339 | "CreateFolder:INSTALLFOLDER\tNullKeypathComponent", |
| 337 | }, results); | 340 | }, results); |
| @@ -409,7 +412,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 409 | 412 | ||
| 410 | Assert.True(File.Exists(msiPath)); | 413 | Assert.True(File.Exists(msiPath)); |
| 411 | var results = Query.QueryDatabase(msiPath, new[] { "Environment" }); | 414 | var results = Query.QueryDatabase(msiPath, new[] { "Environment" }); |
| 412 | Assert.Equal(new[] | 415 | WixAssert.CompareLineByLine(new[] |
| 413 | { | 416 | { |
| 414 | "Environment:PATH\t=-*PATH\t[INSTALLFOLDER]; ;[~]\tWixEnvironmentTest", | 417 | "Environment:PATH\t=-*PATH\t[INSTALLFOLDER]; ;[~]\tWixEnvironmentTest", |
| 415 | "Environment:WixEnvironmentTest1\t=-WixEnvTest1\t\tWixEnvironmentTest", | 418 | "Environment:WixEnvironmentTest1\t=-WixEnvTest1\t\tWixEnvironmentTest", |
| @@ -478,7 +481,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 478 | 481 | ||
| 479 | Assert.True(File.Exists(msiPath)); | 482 | Assert.True(File.Exists(msiPath)); |
| 480 | var results = Query.QueryDatabase(msiPath, new[] { "Feature" }); | 483 | var results = Query.QueryDatabase(msiPath, new[] { "Feature" }); |
| 481 | Assert.Equal(new[] | 484 | WixAssert.CompareLineByLine(new[] |
| 482 | { | 485 | { |
| 483 | "Feature:ChildFeature\tParentFeature\tChildFeatureTitle\t\t2\t1\t\t0", | 486 | "Feature:ChildFeature\tParentFeature\tChildFeatureTitle\t\t2\t1\t\t0", |
| 484 | "Feature:ParentFeature\t\tParentFeatureTitle\t\t2\t1\t\t0", | 487 | "Feature:ParentFeature\t\tParentFeatureTitle\t\t2\t1\t\t0", |
| @@ -513,7 +516,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 513 | 516 | ||
| 514 | Assert.True(File.Exists(msiPath)); | 517 | Assert.True(File.Exists(msiPath)); |
| 515 | var results = Query.QueryDatabase(msiPath, new[] { "Font" }); | 518 | var results = Query.QueryDatabase(msiPath, new[] { "Font" }); |
| 516 | Assert.Equal(new[] | 519 | WixAssert.CompareLineByLine(new[] |
| 517 | { | 520 | { |
| 518 | "Font:test.txt\tFakeFont", | 521 | "Font:test.txt\tFakeFont", |
| 519 | }, results); | 522 | }, results); |
| @@ -546,7 +549,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 546 | 549 | ||
| 547 | Assert.True(File.Exists(msiPath)); | 550 | Assert.True(File.Exists(msiPath)); |
| 548 | var results = Query.QueryDatabase(msiPath, new[] { "Font" }); | 551 | var results = Query.QueryDatabase(msiPath, new[] { "Font" }); |
| 549 | Assert.Equal(new[] | 552 | WixAssert.CompareLineByLine(new[] |
| 550 | { | 553 | { |
| 551 | "Font:TrueTypeFontFile\t", | 554 | "Font:TrueTypeFontFile\t", |
| 552 | }, results); | 555 | }, results); |
| @@ -579,7 +582,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 579 | 582 | ||
| 580 | Assert.True(File.Exists(msiPath)); | 583 | Assert.True(File.Exists(msiPath)); |
| 581 | var results = Query.QueryDatabase(msiPath, new[] { "InstallExecuteSequence" }); | 584 | var results = Query.QueryDatabase(msiPath, new[] { "InstallExecuteSequence" }); |
| 582 | Assert.Equal(new[] | 585 | WixAssert.CompareLineByLine(new[] |
| 583 | { | 586 | { |
| 584 | "InstallExecuteSequence:CostFinalize\t\t1000", | 587 | "InstallExecuteSequence:CostFinalize\t\t1000", |
| 585 | "InstallExecuteSequence:CostInitialize\t\t800", | 588 | "InstallExecuteSequence:CostInitialize\t\t800", |
| @@ -630,7 +633,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 630 | 633 | ||
| 631 | Assert.True(File.Exists(msiPath)); | 634 | Assert.True(File.Exists(msiPath)); |
| 632 | var results = Query.QueryDatabase(msiPath, new[] { "LockPermissions" }); | 635 | var results = Query.QueryDatabase(msiPath, new[] { "LockPermissions" }); |
| 633 | Assert.Equal(new[] | 636 | WixAssert.CompareLineByLine(new[] |
| 634 | { | 637 | { |
| 635 | "LockPermissions:INSTALLFOLDER\tCreateFolder\t\tAdministrator\t0", | 638 | "LockPermissions:INSTALLFOLDER\tCreateFolder\t\tAdministrator\t0", |
| 636 | }, results); | 639 | }, results); |
| @@ -664,7 +667,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 664 | 667 | ||
| 665 | Assert.True(File.Exists(msiPath)); | 668 | Assert.True(File.Exists(msiPath)); |
| 666 | var results = Query.QueryDatabase(msiPath, new[] { "MsiAssembly", "MsiAssemblyName" }); | 669 | var results = Query.QueryDatabase(msiPath, new[] { "MsiAssembly", "MsiAssemblyName" }); |
| 667 | Assert.Equal(new[] | 670 | WixAssert.CompareLineByLine(new[] |
| 668 | { | 671 | { |
| 669 | "MsiAssembly:test.txt\tProductFeature\ttest.dll.manifest\t\t1", | 672 | "MsiAssembly:test.txt\tProductFeature\ttest.dll.manifest\t\t1", |
| 670 | "MsiAssemblyName:test.txt\tname\tMyApplication.app", | 673 | "MsiAssemblyName:test.txt\tname\tMyApplication.app", |
| @@ -699,7 +702,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 699 | 702 | ||
| 700 | Assert.True(File.Exists(msiPath)); | 703 | Assert.True(File.Exists(msiPath)); |
| 701 | var results = Query.QueryDatabase(msiPath, new[] { "MsiShortcutProperty", "Shortcut" }); | 704 | var results = Query.QueryDatabase(msiPath, new[] { "MsiShortcutProperty", "Shortcut" }); |
| 702 | Assert.Equal(new[] | 705 | WixAssert.CompareLineByLine(new[] |
| 703 | { | 706 | { |
| 704 | "MsiShortcutProperty:scp4GOCIx4Eskci4nBG1MV_vSUOZt4\tTheShortcut\tCustomShortcutKey\tCustomShortcutValue", | 707 | "MsiShortcutProperty:scp4GOCIx4Eskci4nBG1MV_vSUOZt4\tTheShortcut\tCustomShortcutKey\tCustomShortcutValue", |
| 705 | "Shortcut:TheShortcut\tINSTALLFOLDER\td\tShortcutComp\t[#filcV1yrx0x8wJWj4qMzcH21jwkPko]\t\t\t\t\t\t\t\t\t\t\t", | 708 | "Shortcut:TheShortcut\tINSTALLFOLDER\td\tShortcutComp\t[#filcV1yrx0x8wJWj4qMzcH21jwkPko]\t\t\t\t\t\t\t\t\t\t\t", |
| @@ -733,7 +736,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 733 | 736 | ||
| 734 | Assert.True(File.Exists(msiPath)); | 737 | Assert.True(File.Exists(msiPath)); |
| 735 | var results = Query.QueryDatabase(msiPath, new[] { "ReserveCost" }); | 738 | var results = Query.QueryDatabase(msiPath, new[] { "ReserveCost" }); |
| 736 | Assert.Equal(new[] | 739 | WixAssert.CompareLineByLine(new[] |
| 737 | { | 740 | { |
| 738 | "ReserveCost:TestCost\tReserveCostComp\tINSTALLFOLDER\t100\t200", | 741 | "ReserveCost:TestCost\tReserveCostComp\tINSTALLFOLDER\t100\t200", |
| 739 | }, results); | 742 | }, results); |
| @@ -766,7 +769,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 766 | 769 | ||
| 767 | Assert.True(File.Exists(msiPath)); | 770 | Assert.True(File.Exists(msiPath)); |
| 768 | var results = Query.QueryDatabase(msiPath, new[] { "ServiceInstall", "ServiceControl" }); | 771 | var results = Query.QueryDatabase(msiPath, new[] { "ServiceInstall", "ServiceControl" }); |
| 769 | Assert.Equal(new[] | 772 | WixAssert.CompareLineByLine(new[] |
| 770 | { | 773 | { |
| 771 | "ServiceControl:SampleService\tSampleService\t161\t\t1\ttest.txt", | 774 | "ServiceControl:SampleService\tSampleService\t161\t\t1\ttest.txt", |
| 772 | "ServiceInstall:SampleService\tSampleService\t\t16\t4\t0\t\t\t\t\t\ttest.txt\t", | 775 | "ServiceInstall:SampleService\tSampleService\t\t16\t4\t0\t\t\t\t\t\ttest.txt\t", |
| @@ -800,7 +803,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 800 | 803 | ||
| 801 | Assert.True(File.Exists(msiPath)); | 804 | Assert.True(File.Exists(msiPath)); |
| 802 | var results = Query.QueryDatabase(msiPath, new[] { "TextStyle" }); | 805 | var results = Query.QueryDatabase(msiPath, new[] { "TextStyle" }); |
| 803 | Assert.Equal(new[] | 806 | WixAssert.CompareLineByLine(new[] |
| 804 | { | 807 | { |
| 805 | "TextStyle:FirstTextStyle\tArial\t2\t\t", | 808 | "TextStyle:FirstTextStyle\tArial\t2\t\t", |
| 806 | }, results); | 809 | }, results); |
| @@ -834,7 +837,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 834 | 837 | ||
| 835 | Assert.True(File.Exists(msiPath)); | 838 | Assert.True(File.Exists(msiPath)); |
| 836 | var results = Query.QueryDatabase(msiPath, new[] { "TextStyle" }); | 839 | var results = Query.QueryDatabase(msiPath, new[] { "TextStyle" }); |
| 837 | Assert.Equal(new[] | 840 | WixAssert.CompareLineByLine(new[] |
| 838 | { | 841 | { |
| 839 | "TextStyle:CustomFont\tTahoma\t8\t\t", | 842 | "TextStyle:CustomFont\tTahoma\t8\t\t", |
| 840 | }, results); | 843 | }, results); |
| @@ -866,7 +869,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 866 | 869 | ||
| 867 | Assert.True(File.Exists(msiPath)); | 870 | Assert.True(File.Exists(msiPath)); |
| 868 | var results = Query.QueryDatabase(msiPath, new[] { "TypeLib" }); | 871 | var results = Query.QueryDatabase(msiPath, new[] { "TypeLib" }); |
| 869 | Assert.Equal(new[] | 872 | WixAssert.CompareLineByLine(new[] |
| 870 | { | 873 | { |
| 871 | "TypeLib:{765BE8EE-BD7F-491E-90D2-C5A972462B50}\t0\tTypeLibComp\t\t\t\tProductFeature\t", | 874 | "TypeLib:{765BE8EE-BD7F-491E-90D2-C5A972462B50}\t0\tTypeLibComp\t\t\t\tProductFeature\t", |
| 872 | }, results); | 875 | }, results); |
| @@ -898,7 +901,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 898 | 901 | ||
| 899 | Assert.True(File.Exists(msiPath)); | 902 | Assert.True(File.Exists(msiPath)); |
| 900 | var results = Query.QueryDatabase(msiPath, new[] { "Upgrade" }); | 903 | var results = Query.QueryDatabase(msiPath, new[] { "Upgrade" }); |
| 901 | Assert.Equal(new[] | 904 | WixAssert.CompareLineByLine(new[] |
| 902 | { | 905 | { |
| 903 | "Upgrade:{01120000-00E0-0000-0000-0000000FF1CE}\t12.0.0\t13.0.0\t\t260\t\tBLAHBLAHBLAH", | 906 | "Upgrade:{01120000-00E0-0000-0000-0000000FF1CE}\t12.0.0\t13.0.0\t\t260\t\tBLAHBLAHBLAH", |
| 904 | }, results); | 907 | }, results); |
| @@ -931,7 +934,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 931 | 934 | ||
| 932 | Assert.True(File.Exists(msiPath)); | 935 | Assert.True(File.Exists(msiPath)); |
| 933 | var results = Query.QueryDatabase(msiPath, new[] { "Upgrade" }); | 936 | var results = Query.QueryDatabase(msiPath, new[] { "Upgrade" }); |
| 934 | Assert.Equal(new[] | 937 | WixAssert.CompareLineByLine(new[] |
| 935 | { | 938 | { |
| 936 | "Upgrade:{12E4699F-E774-4D05-8A01-5BDD41BBA127}\t\t1.0.0.0\t1033\t1\t\tWIX_UPGRADE_DETECTED", | 939 | "Upgrade:{12E4699F-E774-4D05-8A01-5BDD41BBA127}\t\t1.0.0.0\t1033\t1\t\tWIX_UPGRADE_DETECTED", |
| 937 | "Upgrade:{12E4699F-E774-4D05-8A01-5BDD41BBA127}\t1.0.0.0\t\t1033\t2\t\tWIX_DOWNGRADE_DETECTED", | 940 | "Upgrade:{12E4699F-E774-4D05-8A01-5BDD41BBA127}\t1.0.0.0\t\t1033\t2\t\tWIX_DOWNGRADE_DETECTED", |
| @@ -940,12 +943,12 @@ namespace WixToolsetTest.CoreIntegration | |||
| 940 | 943 | ||
| 941 | var prefix = "Property:SecureCustomProperties\t"; | 944 | var prefix = "Property:SecureCustomProperties\t"; |
| 942 | var secureProperties = Query.QueryDatabase(msiPath, new[] { "Property" }).Where(p => p.StartsWith(prefix)).Single(); | 945 | var secureProperties = Query.QueryDatabase(msiPath, new[] { "Property" }).Where(p => p.StartsWith(prefix)).Single(); |
| 943 | Assert.Equal(new[] | 946 | WixAssert.CompareLineByLine(new[] |
| 944 | { | 947 | { |
| 945 | "RELPRODFOUND", | 948 | "RELPRODFOUND", |
| 946 | "WIX_DOWNGRADE_DETECTED", | 949 | "WIX_DOWNGRADE_DETECTED", |
| 947 | "WIX_UPGRADE_DETECTED", | 950 | "WIX_UPGRADE_DETECTED", |
| 948 | }, secureProperties.Substring(prefix.Length).Split(';').OrderBy(p => p)); | 951 | }, secureProperties.Substring(prefix.Length).Split(';').OrderBy(p => p).ToArray()); |
| 949 | } | 952 | } |
| 950 | } | 953 | } |
| 951 | 954 | ||
| @@ -983,13 +986,13 @@ namespace WixToolsetTest.CoreIntegration | |||
| 983 | Assert.Null(data.Tables["File"]); | 986 | Assert.Null(data.Tables["File"]); |
| 984 | 987 | ||
| 985 | var results = Query.QueryDatabase(msiPath, new[] { "File" }); | 988 | var results = Query.QueryDatabase(msiPath, new[] { "File" }); |
| 986 | Assert.Equal(new[] | 989 | WixAssert.CompareLineByLine(new[] |
| 987 | { | 990 | { |
| 988 | "File:filyIq8rqcxxf903Hsn5K9L0SWV73g.243FB739_4D05_472F_9CFB_EF6B1017B6DE\tModuleComponent.243FB739_4D05_472F_9CFB_EF6B1017B6DE\ttest.txt\t17\t\t\t512\t0" | 991 | "File:filyIq8rqcxxf903Hsn5K9L0SWV73g.243FB739_4D05_472F_9CFB_EF6B1017B6DE\tModuleComponent.243FB739_4D05_472F_9CFB_EF6B1017B6DE\ttest.txt\t17\t\t\t512\t0" |
| 989 | }, results); | 992 | }, results); |
| 990 | 993 | ||
| 991 | var files = Query.GetCabinetFiles(cabPath); | 994 | var files = Query.GetCabinetFiles(cabPath); |
| 992 | Assert.Equal(new[] | 995 | WixAssert.CompareLineByLine(new[] |
| 993 | { | 996 | { |
| 994 | "filyIq8rqcxxf903Hsn5K9L0SWV73g.243FB739_4D05_472F_9CFB_EF6B1017B6DE" | 997 | "filyIq8rqcxxf903Hsn5K9L0SWV73g.243FB739_4D05_472F_9CFB_EF6B1017B6DE" |
| 995 | }, files.Select(f => f.Name).ToArray()); | 998 | }, files.Select(f => f.Name).ToArray()); |
