check for number of sold articles
This commit is contained in:
parent
70ce0ceb19
commit
b84bc5bff0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
Loading…
Reference in a new issue