New tests to check what happens with ImageFactory::create(crazyValue)
This commit is contained in:
parent
fd92ed0a31
commit
012ce835c2
@ -42,6 +42,11 @@ TEST(TheImageFactory, cannotCreateInstancesForSomeTypesInMemory)
|
||||
EXPECT_THROW(ImageFactory::create(ImageType::srw), Error);
|
||||
}
|
||||
|
||||
TEST(TheImageFactory, throwsWithNonExistingImageTypes)
|
||||
{
|
||||
EXPECT_THROW(ImageFactory::create(static_cast<ImageType>(666)), Error);
|
||||
}
|
||||
|
||||
|
||||
TEST(TheImageFactory, createsInstancesForSupportedTypesInFiles)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user