12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2024-05-30
- * Changed: 2024-05-30
- *
- * */
- #include <gtest/gtest.h>
- #include <ls-std/ls-std-event.hpp>
- using ls::std::event::EventParameter;
- using testing::Test;
- namespace
- {
- class EventParameterTest : public Test
- {
- public:
- EventParameterTest() = default;
- ~EventParameterTest() override = default;
- };
- TEST_F(EventParameterTest, addParameter)
- {
- auto parameter = EventParameter();
- ASSERT_TRUE(parameter.get().empty());
- parameter.addParameter("blue");
- ASSERT_EQ(1, parameter.get().size());
- ASSERT_STREQ("blue", parameter.get().front().c_str());
- }
- TEST_F(EventParameterTest, get)
- {
- ASSERT_TRUE(EventParameter().get().empty());
- }
- }
|