| 12345678910111213141516171819202122232425262728293031323334 |
- /*
- * author: Patrick-Christopher Mattulat
- * e-mail: webmaster@lynarstudios.com
- */
- #include <factory/WindowApiFactory.hpp>
- #include <glossary/WindowApiTypes.hpp>
- #include <gtest/gtest.h>
- #include <ls-std/ls-std-core.hpp>
- #include <test/cycle/mock/WindowApiMock.hpp>
- using ls::atlantis::cycle::test::WindowApiMock;
- using ls::atlantis::factory::WindowApiFactory;
- using ls::atlantis::glossary::WindowApiTypes;
- using ls::std::core::IllegalArgumentException;
- using ::std::make_shared;
- using ::std::shared_ptr;
- using ::testing::Test;
- namespace
- {
- class WindowApiFactoryTest : public Test
- {
- public:
- WindowApiFactoryTest() = default;
- ~WindowApiFactoryTest() override = default;
- };
- TEST_F(WindowApiFactoryTest, build_noneSelected)
- {
- ASSERT_THROW(static_cast<void>(WindowApiFactory::build(WindowApiTypes::NONE_SELECTED)), IllegalArgumentException);
- }
- }
|