]> git.localhorst.tv Git - blank.git/blob - tst/integration/InvocationTest.cpp
fd9c98fff1150afff115049ee96992577e23f31d
[blank.git] / tst / integration / InvocationTest.cpp
1 #include "InvocationTest.hpp"
2
3 #include "TestInstance.hpp"
4
5 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(blank::test::InvocationTest, "integration");
6
7
8 namespace blank {
9 namespace test {
10
11 void InvocationTest::setUp() {
12
13 }
14
15 void InvocationTest::tearDown() {
16
17 }
18
19
20 void InvocationTest::testUnknownArg() {
21         TestInstance prog({ "--worscht" });
22         prog.AssertErrorLine("unknown option --worscht");
23         prog.AssertExitStatus(1);
24 }
25
26 }
27 }