X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fintegration%2FInvocationTest.cpp;fp=tst%2Fintegration%2FInvocationTest.cpp;h=0d4c52ca464fbb2c66a3e49e4818e81e960dd064;hb=307482574d3acac09e38263de521a1826ceec7ce;hp=0000000000000000000000000000000000000000;hpb=fd86376a8e7d3f1b09be3d018f772ef884937238;p=blank.git diff --git a/tst/integration/InvocationTest.cpp b/tst/integration/InvocationTest.cpp new file mode 100644 index 0000000..0d4c52c --- /dev/null +++ b/tst/integration/InvocationTest.cpp @@ -0,0 +1,27 @@ +#include "InvocationTest.hpp" + +#include "TestInstance.hpp" + +CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::InvocationTest); + + +namespace blank { +namespace test { + +void InvocationTest::setUp() { + +} + +void InvocationTest::tearDown() { + +} + + +void InvocationTest::testUnknownArg() { + TestInstance prog({ "--worscht" }); + prog.AssertErrorLine("unknown option --worscht"); + prog.AssertExitStatus(1); +} + +} +}