diff options
Diffstat (limited to 'src/wix/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs')
-rw-r--r-- | src/wix/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs b/src/wix/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs index 647a5386..882a7861 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs | |||
@@ -469,5 +469,35 @@ namespace WixToolsetTest.CoreIntegration | |||
469 | Assert.Equal(10, result.ExitCode); | 469 | Assert.Equal(10, result.ExitCode); |
470 | } | 470 | } |
471 | } | 471 | } |
472 | |||
473 | [Fact] | ||
474 | public void CannotBuildBundleWithExePackageWithoutSourceOrHashOrCertificate() | ||
475 | { | ||
476 | var dotDatafolder = TestData.Get(@"TestData", ".Data"); | ||
477 | var folder = TestData.Get(@"TestData", "ExePackage"); | ||
478 | |||
479 | using (var fs = new DisposableFileSystem()) | ||
480 | { | ||
481 | var baseFolder = fs.GetFolder(); | ||
482 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
483 | |||
484 | var result = WixRunner.Execute(new[] | ||
485 | { | ||
486 | "build", | ||
487 | Path.Combine(folder, "ExePackageWithoutSourceHashOrCertificate.wxs"), | ||
488 | "-bindpath", Path.Combine(folder, "data"), | ||
489 | "-bindpath", dotDatafolder, | ||
490 | "-intermediateFolder", intermediateFolder, | ||
491 | "-o", Path.Combine(baseFolder, "bin", "test.exe") | ||
492 | }); | ||
493 | |||
494 | WixAssert.CompareLineByLine(new[] | ||
495 | { | ||
496 | "The ExePackagePayload/@Description attribute can only be specified with one of the following attributes: Hash or CertificatePublicKey present.", | ||
497 | "The ExePackagePayload/@Size attribute can only be specified with one of the following attributes: Hash or CertificatePublicKey present.", | ||
498 | "The ExePackagePayload/@Version attribute can only be specified with one of the following attributes: Hash or CertificatePublicKey present.", | ||
499 | }, result.Messages.Select(m => m.ToString()).ToArray()); | ||
500 | } | ||
501 | } | ||
472 | } | 502 | } |
473 | } | 503 | } |