check for number of sold articles

This commit is contained in:
Martin Brodbeck 2018-07-12 13:34:00 +02:00
parent 70ce0ceb19
commit b84bc5bff0

View file

@ -35,4 +35,5 @@ BOOST_AUTO_TEST_CASE(with_article) {
article->setDescription("Test article"); article->setDescription("Test article");
seller.addArticle(article); seller.addArticle(article);
BOOST_TEST(seller.getArticles().at(0)->getDescription() == "Test article"); BOOST_TEST(seller.getArticles().at(0)->getDescription() == "Test article");
BOOST_TEST(seller.soldArticles() == 0);
} }