SerializableJsonStringFactoryTest.cpp 851 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2021-04-25
  6. * Changed: 2021-05-02
  7. *
  8. * */
  9. #include <gtest/gtest.h>
  10. #include <ls_std/ls_std.hpp>
  11. namespace
  12. {
  13. class SerializableJsonStringFactoryTest : public ::testing::Test
  14. {
  15. protected:
  16. SerializableJsonStringFactoryTest() = default;
  17. ~SerializableJsonStringFactoryTest() override = default;
  18. void SetUp() override
  19. {}
  20. void TearDown() override
  21. {}
  22. };
  23. TEST_F(SerializableJsonStringFactoryTest, build)
  24. {
  25. std::shared_ptr<ls_std::String> value = std::dynamic_pointer_cast<ls_std::String>(ls_std::SerializableJsonStringFactory{}.build());
  26. ASSERT_TRUE(value != nullptr);
  27. ASSERT_STREQ("String", value->getClassName().c_str());
  28. }
  29. }