void test_siteAnisotropy() { for (int i = 0; i < m_ni->countSites(); ++i) { TS_ASSERT_EQUALS(false, m_ni->siteAnisotropy(i)); } for (int i = 0; i < m_catio3->countSites(); ++i) { TS_ASSERT_EQUALS(true, m_catio3->siteAnisotropy(i)); } }
void test_empty_instance() { TS_ASSERT_EQUALS(0, mstru->countSites()); TS_ASSERT_EQUALS(mstru.get(), mstru->clone().get()); TS_ASSERT_EQUALS(mstru, emptyStructureAdapter()); TS_ASSERT_THROWS(mstru->siteAtomType(0), std::out_of_range); TS_ASSERT_THROWS(mstru->siteCartesianPosition(0), std::out_of_range); TS_ASSERT_THROWS(mstru->siteMultiplicity(0), std::out_of_range); TS_ASSERT_THROWS(mstru->siteOccupancy(0), std::out_of_range); TS_ASSERT_THROWS(mstru->siteAnisotropy(0), std::out_of_range); TS_ASSERT_THROWS(mstru->siteCartesianPosition(0), std::out_of_range); }