1
0
This repository has been archived on 2025-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
siadrive/UnitTests/SiaApiTests.cpp
Scott E. Graves 25eae58a5c Unit test support
2017-02-03 14:01:00 -06:00

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);
}
};
}