/* * author: Patrick-Christopher Mattulat * e-mail: webmaster@lynarstudios.com */ #include #include #include #include #include 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(WindowApiFactory::build(WindowApiTypes::NONE_SELECTED)), IllegalArgumentException); } }