| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | #include "precomp.h" |
| 4 | |
| 5 | using namespace System; |
| 6 | using namespace Xunit; |
| 7 | using namespace WixInternal::TestSupport; |
| 8 | using namespace WixInternal::TestSupport::XunitExtensions; |
| 9 | |
| 10 | namespace BalUtilTests |
| 11 | { |
| 12 | public ref class BootstrapperApplication |
| 13 | { |
| 14 | public: |
| 15 | [Fact(Skip = "Need a mock implementation of IBootstrapperEngine to test BootstrapperApplication.")] |
| 16 | void CanCreateTestBootstrapperApplication() |
| 17 | { |
| 18 | HRESULT hr = S_OK; |
| 19 | IBootstrapperApplication* pApplication = NULL; |
| 20 | IBootstrapperEngine* pEngine = NULL; |
| 21 | BOOTSTRAPPER_COMMAND command = { }; |
| 22 | |
| 23 | try |
| 24 | { |
| 25 | hr = CreateBootstrapperApplication(&pApplication); |
| 26 | NativeAssert::Succeeded(hr, "Failed to create BootstrapperApplication."); |
| 27 | |
| 28 | hr = pApplication->OnCreate(pEngine, &command); |
| 29 | NativeAssert::Succeeded(hr, "Failed to initialize BootstrapperApplication."); |
| 30 | } |
| 31 | finally |
| 32 | { |
| 33 | ReleaseObject(pEngine); |
| 34 | ReleaseObject(pApplication); |
| 35 | } |
| 36 | } |
| 37 | }; |
| 38 | } |