1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2021-04-25
- * Changed: 2021-05-02
- *
- * */
- #include <gtest/gtest.h>
- #include <ls_std/ls_std.hpp>
- namespace
- {
- class SerializableJsonIntegerFactoryTest : public ::testing::Test
- {
- protected:
- SerializableJsonIntegerFactoryTest() = default;
- ~SerializableJsonIntegerFactoryTest() override = default;
- void SetUp() override
- {}
- void TearDown() override
- {}
- };
- TEST_F(SerializableJsonIntegerFactoryTest, build)
- {
- std::shared_ptr<ls_std::Integer> value = std::dynamic_pointer_cast<ls_std::Integer>(ls_std::SerializableJsonIntegerFactory{}.build());
- ASSERT_TRUE(value != nullptr);
- ASSERT_STREQ("Integer", value->getClassName().c_str());
- }
- }
|