2010-02-11 17:24:21 +01:00
|
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
|
|
|
|
#include "input.hh"
|
|
|
|
#include "posexcept.hh"
|
|
|
|
|
|
|
|
class Input_test: public CxxTest::TestSuite
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
void test_constructor(void)
|
|
|
|
{
|
|
|
|
// TODO: test with a mock Configuration?
|
2010-04-20 15:59:27 +02:00
|
|
|
TS_ASSERT_THROWS(Input input1, missing_configuration) ;
|
2010-02-11 17:24:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} ;
|