1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-02-21
- * Changed: 2023-02-21
- *
- * */
- #include <gtest/gtest.h>
- #include <ls-std/ls-std-io.hpp>
- using namespace ls::std::io;
- using namespace ::std;
- namespace
- {
- class SectionPairFileReaderParameterTest : public ::testing::Test
- {
- protected:
- SectionPairFileReaderParameterTest() = default;
- ~SectionPairFileReaderParameterTest() override = default;
- void SetUp() override
- {}
- void TearDown() override
- {}
- };
- TEST_F(SectionPairFileReaderParameterTest, getDocument)
- {
- ASSERT_TRUE(SectionPairFileReaderParameter{}.getDocument() == nullptr);
- }
- TEST_F(SectionPairFileReaderParameterTest, getFilePath)
- {
- ASSERT_TRUE(SectionPairFileReaderParameter{}.getFilePath().empty());
- }
- TEST_F(SectionPairFileReaderParameterTest, getReader)
- {
- ASSERT_TRUE(SectionPairFileReaderParameter{}.getReader() == nullptr);
- }
- TEST_F(SectionPairFileReaderParameterTest, setDocument)
- {
- SectionPairFileReaderParameter parameter{};
- parameter.setDocument(make_shared<SectionPairDocument>());
- ASSERT_FALSE(parameter.getDocument() == nullptr);
- }
- TEST_F(SectionPairFileReaderParameterTest, setFilePath)
- {
- SectionPairFileReaderParameter parameter{};
- parameter.setFilePath("var/log/log.txt");
- ASSERT_FALSE(parameter.getFilePath().empty());
- }
- }
|