diff --git a/unitTests/test_ImageFactory.cpp b/unitTests/test_ImageFactory.cpp index 710ab481..51816680 100644 --- a/unitTests/test_ImageFactory.cpp +++ b/unitTests/test_ImageFactory.cpp @@ -42,6 +42,11 @@ TEST(TheImageFactory, cannotCreateInstancesForSomeTypesInMemory) EXPECT_THROW(ImageFactory::create(ImageType::srw), Error); } +TEST(TheImageFactory, throwsWithNonExistingImageTypes) +{ + EXPECT_THROW(ImageFactory::create(static_cast(666)), Error); +} + TEST(TheImageFactory, createsInstancesForSupportedTypesInFiles) {