aboutsummaryrefslogtreecommitdiff
path: root/src/burn/test/BurnUnitTest/RegistrationTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/burn/test/BurnUnitTest/RegistrationTest.cpp')
-rw-r--r--src/burn/test/BurnUnitTest/RegistrationTest.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/burn/test/BurnUnitTest/RegistrationTest.cpp b/src/burn/test/BurnUnitTest/RegistrationTest.cpp
index 86ea86b0..f01d92a4 100644
--- a/src/burn/test/BurnUnitTest/RegistrationTest.cpp
+++ b/src/burn/test/BurnUnitTest/RegistrationTest.cpp
@@ -313,6 +313,9 @@ namespace Bootstrapper
313 plan.pCommand = &command; 313 plan.pCommand = &command;
314 plan.pInternalCommand = &internalCommand; 314 plan.pInternalCommand = &internalCommand;
315 315
316 hr = RegistrationSetVariables(&registration, &variables);
317 TestThrowOnFailure(hr, L"Failed to set registration variables.");
318
316 hr = PlanSetResumeCommand(&plan, &registration, &logging); 319 hr = PlanSetResumeCommand(&plan, &registration, &logging);
317 TestThrowOnFailure(hr, L"Failed to set registration resume command."); 320 TestThrowOnFailure(hr, L"Failed to set registration resume command.");
318 321
@@ -339,8 +342,8 @@ namespace Bootstrapper
339 this->ValidateUninstallKeyDisplayName(L"Product1"); 342 this->ValidateUninstallKeyDisplayName(L"Product1");
340 registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; 343 registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL;
341 344
342 hr = RegistrationSetVariables(&registration, &variables); 345 hr = RegistrationSetDynamicVariables(&registration, &variables);
343 TestThrowOnFailure(hr, L"Failed to set registration variables."); 346 TestThrowOnFailure(hr, L"Failed to set dynamic registration variables.");
344 347
345 Assert::Equal(1ll, VariableGetNumericHelper(&variables, BURN_BUNDLE_INSTALLED)); 348 Assert::Equal(1ll, VariableGetNumericHelper(&variables, BURN_BUNDLE_INSTALLED));
346 Assert::Equal<String^>(gcnew String(L"foo"), VariableGetStringHelper(&variables, BURN_BUNDLE_TAG)); 349 Assert::Equal<String^>(gcnew String(L"foo"), VariableGetStringHelper(&variables, BURN_BUNDLE_TAG));