azure-sdk-for-cpp/sdk/template/azure-template/test/ut/template_test.cpp
Rick Winter b54d509c72
Use standard syntax for MIT license (#4786)
* Use standard syntax for MIT license

* Stop appending "All rights reserved"
2023-07-12 22:37:36 -07:00

25 lines
669 B
C++

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <azure/template/template_client.hpp>
#include <gtest/gtest.h>
using namespace Azure::Template;
TEST(Template, Basic) { TemplateClient templateClient; }
TEST(Template, GetValue)
{
TemplateClient templateClient;
EXPECT_EQ(templateClient.GetValue(-1), 0);
EXPECT_EQ(templateClient.GetValue(0), 0);
EXPECT_EQ(templateClient.GetValue(1), 10);
EXPECT_EQ(templateClient.GetValue(22), -100);
EXPECT_EQ(templateClient.GetValue(21), 150);
EXPECT_EQ(templateClient.GetValue(11), 20);
EXPECT_EQ(templateClient.GetValue(14), 1);
EXPECT_EQ(templateClient.GetValue(18), 0);
}