kima2/test/test_seller.cpp

18 lines
400 B
C++
Raw Normal View History

#define BOOST_TEST_MODULE seller
2018-07-09 21:42:04 +02:00
#include "../src/core/seller.h"
2018-07-09 16:54:04 +02:00
#include <boost/test/included/unit_test.hpp>
using namespace boost::unit_test;
2018-07-09 17:52:46 +02:00
BOOST_AUTO_TEST_CASE( create_uuid_nil ) {
Seller seller{};
BOOST_TEST(seller.getUuid().is_nil() == true);
}
2018-07-09 17:52:46 +02:00
BOOST_AUTO_TEST_CASE(create_uuid) {
Seller seller{};
seller.createUuid();
BOOST_TEST(seller.getUuid().is_nil() == false);
}