#include "Exception/IOException.hpp"
#include "TestFramework.hpp"

BOOST_AUTO_TEST_CASE( Create )
{
  try {
    throw IOException("Hello");
  }
  catch (IOException & e) {
    BOOST_REQUIRE_EQUAL(e.toString(), "Hello");
    BOOST_REQUIRE_THROW(e.raise(), IOException);
  }
}
