kima2/test/test_seller.cpp

18 lines
400 B
C++
Raw Normal View History

#include "../src/core/seller.h"
#define BOOST_TEST_MODULE seller
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);
}