Test cases for uuid
This commit is contained in:
parent
f7bd7d614a
commit
0a76e5933d
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue