Unit test support
This commit is contained in:
22
UnitTests/SiaApiTests.cpp
Normal file
22
UnitTests/SiaApiTests.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "stdafx.h"
|
||||
#include "CppUnitTest.h"
|
||||
#include <SiaApi.h>
|
||||
#include "UnitTestConfig.h"
|
||||
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace UnitTests
|
||||
{
|
||||
TEST_CLASS(SiaApi)
|
||||
{
|
||||
private:
|
||||
const SiaHostConfig TEST_HOST_CONFIG = { L"localhost", 9980, TEST_SERVER_VERSION };
|
||||
|
||||
public:
|
||||
TEST_METHOD(GetServerVersion)
|
||||
{
|
||||
CSiaApi api(TEST_HOST_CONFIG);
|
||||
Assert::IsTrue(api.GetServerVersion() == TEST_SERVER_VERSION);
|
||||
}
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user