60 std::unique_ptr<BOARD> board( m_plugin.LoadBoard( dataPath,
nullptr ) );
71 for(
FOOTPRINT* fp : board->Footprints() )
73 if( fp->GetReference() == wxT(
"R1" ) )
76 if( fp->GetReference() == wxT(
"C1" ) )
80 BOOST_CHECK_MESSAGE( foundR1,
"R1 footprint not found" );
81 BOOST_CHECK_MESSAGE( foundC1,
"C1 footprint not found" );
222 std::unique_ptr<BOARD> board( m_plugin.LoadBoard( dataPath,
nullptr ) );
230 for(
FOOTPRINT* fp : board->Footprints() )
232 if( fp->GetReference() == wxT(
"R1" ) )
234 else if( fp->GetReference() == wxT(
"C1" ) )
238 BOOST_REQUIRE_MESSAGE( r1,
"R1 footprint not found" );
239 BOOST_REQUIRE_MESSAGE( c1,
"C1 footprint not found" );
242 BOOST_CHECK_MESSAGE( !r1->
IsFlipped(),
"R1 should be on the front side" );
245 BOOST_CHECK_MESSAGE( c1->
IsFlipped(),
"C1 (onsolder) should be flipped to the back side" );
298 std::unique_ptr<BOARD> board( m_plugin.LoadBoard( dataPath,
nullptr ) );
302 bool foundGND =
false;
303 bool foundVCC =
false;
305 for(
int i = 0; i < board->GetNetCount(); i++ )
307 NETINFO_ITEM* net = board->GetNetInfo().GetNetItem( i );
319 BOOST_CHECK_MESSAGE( foundGND,
"Net GND not found" );
320 BOOST_CHECK_MESSAGE( foundVCC,
"Net VCC not found" );
BOOST_CHECK_EQUAL(result, "25.4")