1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <Main.h> #include <Input.h> BALAU_STARTUP; using namespace Balau; void MainTask::Do() { Printer::log(M_STATUS, "Test::Handles running."); bool failed = false; try { IO i(new Input("SomeInexistantFile.txt")); } catch (GeneralException) { failed = true; } Assert(failed); IO i(new Input("Makefile")); Printer::log(M_STATUS, "Test::Handles passed."); }