KeyboardFactoryTest.cpp 730 B

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