diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-16 20:38:26 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-17 17:37:35 -0400 |
| commit | 9dda8036cd9d08d4f7aa9575a53702320b761ed8 (patch) | |
| tree | 323f17da075b6473079e71b610ca48e6b14c7c2e /sigscript/test/TestConfig.h | |
| parent | de4ecb39402fa695fa814eee0ac031baeecfb6b5 (diff) | |
| download | sigen-9dda8036cd9d08d4f7aa9575a53702320b761ed8.tar.gz sigen-9dda8036cd9d08d4f7aa9575a53702320b761ed8.tar.xz sigen-9dda8036cd9d08d4f7aa9575a53702320b761ed8.zip | |
Add test for Config
Diffstat (limited to 'sigscript/test/TestConfig.h')
| -rw-r--r-- | sigscript/test/TestConfig.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sigscript/test/TestConfig.h b/sigscript/test/TestConfig.h new file mode 100644 index 00000000..9a37dc45 --- /dev/null +++ b/sigscript/test/TestConfig.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009 Ben Boeckel <MathStuf@gmail.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef SIGSCRIPT_TESTCONFIG +#define SIGSCRIPT_TESTCONFIG + +// Qt includes +#include <QtCore/QObject> + +// Forward declarations +namespace Sigscript +{ +class Config; +} + +class TestConfig : public QObject +{ + Q_OBJECT + + private slots: + void initTestCase(); + void cleanupTestCase(); + + void testAddValue(); + void testSetValue(); + void testRemoveValue(); + void testSetOptions(); + void testOptions(); + void testClean(); + void testUnsetOptions(); + void testValueList(); + + void testOptionsRead(); + void testValueRead(); + void testValueCheck(); + void testValueTypeRead(); + private: + Sigscript::Config* m_config; +}; + +#endif |
