1
0

More unit tests

This commit is contained in:
Scott E. Graves
2017-02-03 15:35:15 -06:00
parent 3be04b0e0e
commit 316d20c495
5 changed files with 33 additions and 12 deletions

View File

@@ -10,12 +10,12 @@ namespace UnitTests
TEST_CLASS(SiaApi)
{
private:
const SiaHostConfig TEST_HOST_CONFIG = { L"localhost", 9980, TEST_SERVER_VERSION };
const SiaHostConfig _hostConfig = { TEST_SERVER_AND_PORT, TEST_SERVER_VERSION };
public:
TEST_METHOD(GetServerVersion)
{
CSiaApi api(TEST_HOST_CONFIG);
CSiaApi api(_hostConfig);
Assert::IsTrue(api.GetServerVersion() == TEST_SERVER_VERSION);
}
};