Skip to content
Snippets Groups Projects
Commit 51f5287f authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Enhance Entity test case.

parent 86cfe22b
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,28 @@ BOOST_AUTO_TEST_CASE (commandLine_signalDep)
BOOST_CHECK (output.is_empty ());
}
BOOST_AUTO_TEST_CASE (commandLine_unknown)
{
dynamicgraph::Entity entity ("my-entity");
output_test_stream output;
std::istringstream args;
try
{
entity.commandLine("unknown", args, output);
}
catch (dynamicgraph::ExceptionFactory& exception)
{
//FIXME: getCode should be const.
BOOST_CHECK_EQUAL (exception.getCode (),
dynamicgraph::ExceptionFactory::UNREFERED_FUNCTION);
}
BOOST_CHECK (output.is_empty ());
}
BOOST_AUTO_TEST_CASE (writeGraph)
{
dynamicgraph::Entity entity ("my-entity");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment