/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-02-09 * Changed: 2023-02-09 * * */ #include #include #include #include using namespace ls::std::core; using namespace ls::std::io; using namespace ::std; namespace { class SectionPairIdentifierArgumentEvaluatorTest : public ::testing::Test { protected: SectionPairIdentifierArgumentEvaluatorTest() = default; ~SectionPairIdentifierArgumentEvaluatorTest() override = default; void SetUp() override {} void TearDown() override {} }; TEST_F(SectionPairIdentifierArgumentEvaluatorTest, evaluate) { EXPECT_THROW( { try { SectionPairIdentifierArgumentEvaluator("_color", "section pair identifier contains invalid characters!").evaluate(); } catch (const IllegalArgumentException &_exception) { ::std::string message = _exception.what(); ASSERT_STREQ("IllegalArgumentException thrown - section pair identifier contains invalid characters!", message.c_str()); throw; } }, IllegalArgumentException); } }