Test cases for uuid

This commit is contained in:
Martin Brodbeck 2018-07-09 17:52:46 +02:00
parent f7bd7d614a
commit 0a76e5933d

View file

@ -6,7 +6,13 @@
using namespace boost::unit_test;
BOOST_AUTO_TEST_CASE( initial_test ) {
BOOST_AUTO_TEST_CASE( create_uuid_nil ) {
Seller seller{};
BOOST_TEST(seller.getUuid().is_nil() == true);
}
BOOST_AUTO_TEST_CASE(create_uuid) {
Seller seller{};
seller.createUuid();
BOOST_TEST(seller.getUuid().is_nil() == false);
}