Event system and debug consumer added
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "MockSiad.h"
|
||||
#include "SiaDriveConfig.h"
|
||||
#include "UnitTestConfig.h"
|
||||
#include <DebugConsumer.h>
|
||||
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
using namespace Sia::Api;
|
||||
@@ -16,8 +17,14 @@ namespace UnitTests
|
||||
private:
|
||||
const SiaHostConfig hostConfig = { TEST_SERVER_AND_PORT, TEST_SERVER_VERSION };
|
||||
static std::unique_ptr<CMockSiad> siad;
|
||||
static CDebugConsumer _debugConsumer;
|
||||
|
||||
public:
|
||||
TEST_CLASS_INITIALIZE(ClassInit)
|
||||
{
|
||||
CEventSystem::EventSystem.Start();
|
||||
}
|
||||
|
||||
TEST_METHOD_INITIALIZE(Initialize)
|
||||
{
|
||||
// Always delete DB before next test
|
||||
@@ -62,4 +69,5 @@ namespace UnitTests
|
||||
};
|
||||
|
||||
std::unique_ptr<CMockSiad> UnitTests::siad;
|
||||
CDebugConsumer UnitTests::_debugConsumer;
|
||||
}
|
Reference in New Issue
Block a user