56 std::unique_ptr<BOARD> board( m_plugin.LoadBoard( dataPath,
nullptr ) );
67 for(
FOOTPRINT* fp : board->Footprints() )
69 if( fp->GetReference() == wxT(
"R1" ) )
72 if( fp->GetReference() == wxT(
"C1" ) )
76 BOOST_CHECK_MESSAGE( foundR1,
"R1 footprint not found" );
77 BOOST_CHECK_MESSAGE( foundC1,
"C1 footprint not found" );
218 std::unique_ptr<BOARD> board( m_plugin.LoadBoard( dataPath,
nullptr ) );
226 for(
FOOTPRINT* fp : board->Footprints() )
228 if( fp->GetReference() == wxT(
"R1" ) )
230 else if( fp->GetReference() == wxT(
"C1" ) )
234 BOOST_REQUIRE_MESSAGE( r1,
"R1 footprint not found" );
235 BOOST_REQUIRE_MESSAGE( c1,
"C1 footprint not found" );
238 BOOST_CHECK_MESSAGE( !r1->
IsFlipped(),
"R1 should be on the front side" );
241 BOOST_CHECK_MESSAGE( c1->
IsFlipped(),
"C1 (onsolder) should be flipped to the back side" );
294 std::unique_ptr<BOARD> board( m_plugin.LoadBoard( dataPath,
nullptr ) );
298 bool foundGND =
false;
299 bool foundVCC =
false;
301 for(
int i = 0; i < board->GetNetCount(); i++ )
303 NETINFO_ITEM* net = board->GetNetInfo().GetNetItem( i );
315 BOOST_CHECK_MESSAGE( foundGND,
"Net GND not found" );
316 BOOST_CHECK_MESSAGE( foundVCC,
"Net VCC not found" );
BOOST_CHECK_EQUAL(result, "25.4")