RuntimeLibraryLoaderTest.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2022-09-06
  6. * Changed: 2022-09-06
  7. *
  8. * */
  9. #include <gtest/gtest.h>
  10. #include <ls_std/ls_std_os.hpp>
  11. #include <ls_std/ls_std_core.hpp>
  12. namespace
  13. {
  14. class RuntimeLibraryLoaderTest : public ::testing::Test
  15. {
  16. protected:
  17. RuntimeLibraryLoaderTest() = default;
  18. ~RuntimeLibraryLoaderTest() override = default;
  19. void SetUp() override
  20. {}
  21. void TearDown() override
  22. {}
  23. };
  24. TEST_F(RuntimeLibraryLoaderTest, constructor_empty_path_parameter)
  25. {
  26. EXPECT_THROW({
  27. try
  28. {
  29. ls::std::os::RuntimeLibraryLoader(ls::std::os::RuntimeLibraryLoaderParameter{});
  30. }
  31. catch (const ls::std::core::IllegalArgumentException &_exception)
  32. {
  33. throw;
  34. }
  35. }, ls::std::core::IllegalArgumentException);
  36. }
  37. }