New tests to check what happens with ImageFactory::create(crazyValue)

This commit is contained in:
Luis Díaz Más 2019-03-03 18:57:38 +01:00
parent fd92ed0a31
commit 012ce835c2

View File

@ -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)
{