azure-sdk-for-cpp/sdk/template/azure-template/test/ut/template_test.cpp
Anton Kolesnyk 5de42570e2
Make Template to pass the default goals set for code coverage (#3198)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-12-17 13:56:01 -08:00

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