76 auto oldBoard = std::make_unique<INSTRUMENTED_BOARD>( &dtorCount );
79 std::vector<std::unique_ptr<FOOTPRINT_EDITOR_TAB_CONTEXT>> contexts;
80 contexts.push_back( std::make_unique<FOOTPRINT_EDITOR_TAB_CONTEXT>( wxS(
"Lib" ), wxS(
"A" ),
81 std::move( oldBoard ) ) );
83 auto newCtx = std::make_unique<FOOTPRINT_EDITOR_TAB_CONTEXT>(
84 wxS(
"Lib" ), wxS(
"B" ),
makeFpHolder( wxS(
"Lib" ), wxS(
"B" ) ) );
87 int dtorCountDuringInstall = -1;
90 contexts, 0, std::move( newCtx ),
91 [&]() { dtorCountDuringInstall = dtorCount; } );
98 BOOST_REQUIRE_EQUAL( contexts.size(), 1u );
BOOST_CHECK_EQUAL(result, "25.4")