22 lines
456 B
C++
22 lines
456 B
C++
#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);
|
|
}
|
|
};
|
|
} |