Added more bmp functions to the unitialized tests
This commit is contained in:
parent
8102148e60
commit
dd2f0d0496
@ -5,7 +5,7 @@
|
||||
using namespace Leonetienne::BmpPP;
|
||||
using namespace Eule;
|
||||
|
||||
// Tests that trying to interrogate any getter/Write() on an uninitialized image results in a runtime error
|
||||
// Tests that get information or modifying on an uninitialized image results in a runtime error
|
||||
TEST_CASE(__FILE__"/RuntimeErrorOnUninitialized", "[Uninitialized]")
|
||||
{
|
||||
// Create uninitialized image
|
||||
@ -46,6 +46,36 @@ TEST_CASE(__FILE__"/RuntimeErrorOnUninitialized", "[Uninitialized]")
|
||||
, std::runtime_error
|
||||
);
|
||||
|
||||
REQUIRE_THROWS_AS(
|
||||
bmp.GetPixelbuffer()
|
||||
, std::runtime_error
|
||||
);
|
||||
|
||||
REQUIRE_THROWS_AS(
|
||||
bmp.MirrorHorizontally()
|
||||
, std::runtime_error
|
||||
);
|
||||
|
||||
REQUIRE_THROWS_AS(
|
||||
bmp.MirrorVertically()
|
||||
, std::runtime_error
|
||||
);
|
||||
|
||||
REQUIRE_THROWS_AS(
|
||||
bmp.MirrorVertically()
|
||||
, std::runtime_error
|
||||
);
|
||||
|
||||
REQUIRE_THROWS_AS(
|
||||
bmp.SwapChannels(0, 1)
|
||||
, std::runtime_error
|
||||
);
|
||||
|
||||
REQUIRE_THROWS_AS(
|
||||
bmp.FillChannel(0, 0xFF)
|
||||
, std::runtime_error
|
||||
);
|
||||
|
||||
REQUIRE_THROWS_AS(
|
||||
bmp.Write("foo.bmp")
|
||||
, std::runtime_error
|
||||
|
Loading…
x
Reference in New Issue
Block a user