25 lines
514 B
C++
25 lines
514 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <azure/template/template_client.hpp>
|
|
|
|
using namespace Azure::Template;
|
|
|
|
TEST(Template, Basic)
|
|
{
|
|
TemplateClient templateClient;
|
|
|
|
EXPECT_FALSE(templateClient.ClientVersion().empty());
|
|
}
|
|
|
|
TEST(Template, GetValue)
|
|
{
|
|
TemplateClient templateClient;
|
|
|
|
EXPECT_EQ(templateClient.GetValue(-1), 0);
|
|
EXPECT_EQ(templateClient.GetValue(0), 1);
|
|
EXPECT_EQ(templateClient.GetValue(1), 2);
|
|
}
|