| 1 | /* |
| 2 | * SPDX-FileName: testMonostable.hxx |
| 3 | * SPDX-FileComment: Unit tests for monostable autopilot element |
| 4 | * SPDX-FileCopyrightText: Copyright (C) 2023 Huntley Palmer |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #pragma once |
| 9 | |
| 10 | |
| 11 | #include <cppunit/TestFixture.h> |
| 12 | #include <cppunit/extensions/HelperMacros.h> |
| 13 | |
| 14 | #include <simgear/props/props.hxx> |
| 15 | |
| 16 | |
| 17 | // The system tests. |
| 18 | class MonostableTests : public CppUnit::TestFixture |
| 19 | { |
| 20 | // Set up the test suite. |
| 21 | CPPUNIT_TEST_SUITE(MonostableTests); |
| 22 | CPPUNIT_TEST(testMonostable); |
| 23 | CPPUNIT_TEST_SUITE_END(); |
| 24 | |
| 25 | SGPropertyNode_ptr configFromString(const std::string& s); |
| 26 | |
| 27 | public: |
| 28 | // Set up function for each test. |
| 29 | void setUp(); |
| 30 | |
| 31 | // Clean up after each test. |
| 32 | void tearDown(); |
| 33 | |
| 34 | |
| 35 | // The tests. |
| 36 | void testMonostable(); |
| 37 | }; |