38 lines
791 B
C++
38 lines
791 B
C++
|
/*
|
||
|
* SPDX-FileName: testMonostable.hxx
|
||
|
* SPDX-FileComment: Unit tests for monostable autopilot element
|
||
|
* SPDX-FileCopyrightText: Copyright (C) 2023 Huntley Palmer
|
||
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
|
||
|
#include <cppunit/TestFixture.h>
|
||
|
#include <cppunit/extensions/HelperMacros.h>
|
||
|
|
||
|
#include <simgear/props/props.hxx>
|
||
|
|
||
|
|
||
|
// The system tests.
|
||
|
class MonostableTests : public CppUnit::TestFixture
|
||
|
{
|
||
|
// Set up the test suite.
|
||
|
CPPUNIT_TEST_SUITE(MonostableTests);
|
||
|
CPPUNIT_TEST(testMonostable);
|
||
|
CPPUNIT_TEST_SUITE_END();
|
||
|
|
||
|
SGPropertyNode_ptr configFromString(const std::string& s);
|
||
|
|
||
|
public:
|
||
|
// Set up function for each test.
|
||
|
void setUp();
|
||
|
|
||
|
// Clean up after each test.
|
||
|
void tearDown();
|
||
|
|
||
|
|
||
|
// The tests.
|
||
|
void testMonostable();
|
||
|
};
|