WindowApiFactoryTest.cpp 909 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #include <factory/WindowApiFactory.hpp>
  6. #include <glossary/WindowApiTypes.hpp>
  7. #include <gtest/gtest.h>
  8. #include <ls-std/core/exception/IllegalArgumentException.hpp>
  9. #include <test/cycle/mock/WindowApiMock.hpp>
  10. using ls::atlantis::cycle::test::WindowApiMock;
  11. using ls::atlantis::factory::WindowApiFactory;
  12. using ls::atlantis::glossary::WindowApiTypes;
  13. using ls::std::core::IllegalArgumentException;
  14. using ::std::make_shared;
  15. using ::std::shared_ptr;
  16. using ::testing::Test;
  17. namespace
  18. {
  19. class WindowApiFactoryTest : public Test
  20. {
  21. public:
  22. WindowApiFactoryTest() = default;
  23. ~WindowApiFactoryTest() override = default;
  24. };
  25. TEST_F(WindowApiFactoryTest, build_noneSelected)
  26. {
  27. ASSERT_THROW(static_cast<void>(WindowApiFactory::build(WindowApiTypes::NONE_SELECTED)), IllegalArgumentException);
  28. }
  29. }