60 +
"plugins/altium/eDP_adapter_dvt1_source/eDP_adapter_dvt1.PcbDoc";
62 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
65 m_altiumPlugin.LoadBoard( dataPath, board.get(),
nullptr );
70 BOOST_CHECK( board->GetNetCount() > 0 );
71 BOOST_CHECK( board->Footprints().size() > 0 );
87 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
89 m_altiumPlugin.LoadBoard( dataPath, board.get(),
nullptr );
94 std::shared_ptr<NET_SETTINGS> netSettings = board->GetDesignSettings().m_NetSettings;
99 auto& patternAssignments = netSettings->GetNetclassPatternAssignments();
102 BOOST_REQUIRE_MESSAGE( patternAssignments.size() > 0,
103 "Test file must have netclass pattern assignments" );
107 bool foundAssignedNet =
false;
111 if( net->GetNetCode() <= 0 )
115 NETCLASS* directNetclass = net->GetNetClass();
118 std::shared_ptr<NETCLASS> effectiveNetclass =
119 netSettings->GetEffectiveNetClass( net->GetNetname() );
126 directNetclass !=
nullptr,
127 wxString::Format(
"Net '%s' should have a direct netclass assignment",
128 net->GetNetname() ) );
132 foundAssignedNet =
true;
138 wxString::Format(
"Net '%s' should not have default netclass, "
139 "expected effective class or component",
140 net->GetNetname() ) );
146 BOOST_CHECK_MESSAGE( foundAssignedNet,
147 "At least one net should have a non-default netclass assigned" );